Package com.flaptor.hounder.searcher

Examples of com.flaptor.hounder.searcher.QueryParams


      return msearch(query, firstResult, count, group, groupSize, filter, sort).getGsr();
    }

    public MultiGSR msearch(AQuery query, int firstResult, int count, AGroup group, int groupSize, AFilter filter, ASort sort) {

        final QueryParams queryParams = new QueryParams(query, 0, firstResult + count, group, 1, filter, sort);


        Execution<GroupedSearchResults> execution= new Execution<GroupedSearchResults>();
        for (int i = 0; i < searchers.size(); ++i) {
          final int numSearcher = i;
          final IRemoteSearcher searcher = searchers.get(numSearcher);
            execution.addTask(new CallableWithId<GroupedSearchResults, Integer>(numSearcher) {
                public GroupedSearchResults call() throws Exception {
                    return queryParams.executeInRemoteSearcher(searcher);
                }
            });
        }
        multiQueryExecutor.addExecution(execution);
View Full Code Here

TOP

Related Classes of com.flaptor.hounder.searcher.QueryParams

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.