Examples of retrieveGroupHeads()


Examples of org.apache.lucene.search.grouping.AbstractAllGroupHeadsCollector.retrieveGroupHeads()

      collectors.add(termAllGroupHeadsCollector);
      searcher.search(query, luceneFilter, MultiCollector.wrap(collectors.toArray(new Collector[collectors.size()])));
    }

    int maxDoc = searcher.maxDoc();
    long[] bits = termAllGroupHeadsCollector.retrieveGroupHeads(maxDoc).getBits();
    return new BitDocSet(new OpenBitSet(bits, bits.length));
  }

  private DocSet computeDocSet(Query query, Filter luceneFilter, List<Collector> collectors) throws IOException {
    int maxDoc = searcher.maxDoc();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.