Class LuceneCollectors
java.lang.Object
org.hibernate.search.backend.lucene.search.extraction.impl.LuceneCollectors
-
Method Summary
Modifier and TypeMethodDescriptionvoidPhase 1: collect matching docs.<T> List<T>collectTopDocsData(TopDocsDataCollector.Factory<T> collectorFactory, int startInclusive, int endExclusive) Phase 2: collect data relative to top docs.org.apache.lucene.search.TopDocs
-
Method Details
-
collectMatchingDocs
Phase 1: collect matching docs. Collects the total hit count, aggregations, and top docs.- Throws:
IOException- If Lucene throws anIOException.
-
collectedMultiResults
-
collectTopDocsData
public <T> List<T> collectTopDocsData(TopDocsDataCollector.Factory<T> collectorFactory, int startInclusive, int endExclusive) throws IOException Phase 2: collect data relative to top docs.- Type Parameters:
T- The type of value collected for each top doc.- Parameters:
collectorFactory- The factory to create a collector able to retrieve data for all top docs.startInclusive- The index of the first top doc whose data to collect.endExclusive- The index after the last top doc whose data to collect.- Throws:
IOException- If Lucene throws anIOException.
-
getResultTotal
-
getTopDocs
public org.apache.lucene.search.TopDocs getTopDocs()
-