Package com.flaptor.hounder.searcher.group

Examples of com.flaptor.hounder.searcher.group.AResultsGrouper


    private GroupedSearchResults pageResults (final TopDocs tdocs, final org.apache.lucene.search.Searcher searcher, final int offset, int groupCount, AGroup groupBy, int groupSize) {

        checkQueryParameters(tdocs, offset, groupCount);


        AResultsGrouper grouper;
        if (null == groupBy ) {
            grouper = (new NoGroup()).getGrouper(new TopDocsDocumentProvider(tdocs,searcher));
        } else {
            grouper = groupBy.getGrouper(new TopDocsDocumentProvider(tdocs,searcher));
        }
        return grouper.group(groupCount,groupSize,offset);
    }
View Full Code Here


            logger.warn("No good results - " + badResults + " exceptions");
            gsr = new GroupedSearchResults();
        } else {
          //done collecting results, either because we have results from all the searchers or because we timed out
          //now we generate a result vector with the top results of each set
          AResultsGrouper grouper = group.getGrouper(new GroupedSearchResultsDocumentProvider(goodResults,sort));
          gsr = grouper.group(count,groupSize,firstResult);
        }

        MultiGSR result = new MultiGSR(gsr,searchers.size());

        for (Entry<Integer, GroupedSearchResults> entry: goodResultsMap.entrySet()){
View Full Code Here

TOP

Related Classes of com.flaptor.hounder.searcher.group.AResultsGrouper

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.