Package com.flaptor.indextank.search

Examples of com.flaptor.indextank.search.DocumentSearcher


            Map<Integer, Double> queryVariables,
            List<CategoryFilter> facetsFilter,
            List<RangeFilter> variableRangeFilters,
            List<RangeFilter> functionRangeFilters,
            Map<String,String> extraParameters) throws IndexEngineApiException {
        DocumentSearcher searcher = engine.getSearcher();
        try {
            Query query = generateQuery(queryStr, start, len,
                    QueryVariablesImpl.fromMap(queryVariables),
                    convertToMultimap(facetsFilter),
                    new IntersectionMatchFilter(
                            convertToVariableRangeFilter(variableRangeFilters),
                            convertToFunctionRangeFilter(functionRangeFilters)
                    )
            );
            SearchResults search = searcher.search(query, start, len, scoringFunctionIndex, extraParameters);
            return search;
        } catch (NoSuchQueryVariableException e) {
            throw new IndexEngineApiException("Missing query variable with index '" + e.getMissingVariableIndex() + "'", e);
        } catch (ParseException e) {
            throw new IndexEngineApiException("Invalid query", e);
View Full Code Here

TOP

Related Classes of com.flaptor.indextank.search.DocumentSearcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.