Uses of Class
org.apache.lucene.search.Collector
-
Packages that use Collector Package Description org.apache.lucene.benchmark.byTask.tasks Extendable benchmark tasks.org.apache.lucene.facet.search Faceted Search APIorg.apache.lucene.search Code to search indices.org.apache.lucene.search.grouping This module enables search result grouping with Lucene, where hits with the same value in the specified single-valued group field are grouped together.org.apache.lucene.search.join This modules support index-time and query-time joins. -
-
Uses of Collector in org.apache.lucene.benchmark.byTask.tasks
Methods in org.apache.lucene.benchmark.byTask.tasks that return Collector Modifier and Type Method Description protected CollectorReadTask. createCollector()protected CollectorSearchWithCollectorTask. createCollector() -
Uses of Collector in org.apache.lucene.facet.search
Subclasses of Collector in org.apache.lucene.facet.search Modifier and Type Class Description classFacetsCollectorCollector for facet accumulation.classScoredDocIdCollectorACollectorwhich stores all docIDs and their scores in aScoredDocIDsinstance. -
Uses of Collector in org.apache.lucene.search
Subclasses of Collector in org.apache.lucene.search Modifier and Type Class Description classCachingCollectorCaches all docs, and optionally also scores, coming from a search, and is then able to replay them to another collector.static classCheckHits.ExplanationAsserterAsserts that the score explanation for every document matching a query corresponds with the true score.static classCheckHits.SetCollectorJust collects document ids into a set.classMultiCollectorclassPositiveScoresOnlyCollectorclassTimeLimitingCollectorTheTimeLimitingCollectoris used to timeout search requests that take longer than the maximum allowed search time limit.classTopDocsCollector<T extends ScoreDoc>A base class for all collectors that return aTopDocsoutput.classTopFieldCollectorclassTopScoreDocCollectorclassTotalHitCountCollectorJust counts the total number of hits.Fields in org.apache.lucene.search declared as Collector Modifier and Type Field Description protected CollectorCachingCollector. otherMethods in org.apache.lucene.search that return Collector Modifier and Type Method Description static CollectorMultiCollector. wrap(Collector... collectors)Wraps a list ofCollectors with aMultiCollector.Methods in org.apache.lucene.search with parameters of type Collector Modifier and Type Method Description static CachingCollectorCachingCollector. create(Collector other, boolean cacheScores, double maxRAMMB)Create a newCachingCollectorthat wraps the given collector and caches documents and scores up to the specified RAM threshold.static CachingCollectorCachingCollector. create(Collector other, boolean cacheScores, int maxDocsToCache)Create a newCachingCollectorthat wraps the given collector and caches documents and scores up to the specified max docs threshold.abstract voidCachingCollector. replay(Collector other)Replays the cached doc IDs (and scores) to the given Collector.voidConstantScoreQuery.ConstantScorer. score(Collector collector)protected booleanConstantScoreQuery.ConstantScorer. score(Collector collector, int max, int firstDocID)voidScoreCachingWrappingScorer. score(Collector collector)protected booleanScoreCachingWrappingScorer. score(Collector collector, int max, int firstDocID)voidScorer. score(Collector collector)Scores and collects all matching documents.protected booleanScorer. score(Collector collector, int max, int firstDocID)Expert: Collects matching documents in a range.voidCheckHits.ExplanationAssertingSearcher. search(Query query, Collector results)voidCheckHits.ExplanationAssertingSearcher. search(Query query, Filter filter, Collector results)voidIndexSearcher. search(Query query, Collector results)Lower-level search API.voidIndexSearcher. search(Query query, Filter filter, Collector results)Lower-level search API.voidIndexSearcher. search(Weight weight, Filter filter, Collector collector)Lower-level search API.voidMultiSearcher. search(Weight weight, Filter filter, Collector collector)Deprecated.voidParallelMultiSearcher. search(Weight weight, Filter filter, Collector collector)Deprecated.Lower-level search API.voidRemoteSearchable. search(Weight weight, Filter filter, Collector results)Deprecated.voidSearchable. search(Weight weight, Filter filter, Collector collector)Deprecated.Lower-level search API.voidSearcher. search(Query query, Collector results)Deprecated.Lower-level search API.voidSearcher. search(Query query, Filter filter, Collector results)Deprecated.Lower-level search API.abstract voidSearcher. search(Weight weight, Filter filter, Collector results)Deprecated.voidTimeLimitingCollector. setCollector(Collector collector)This is so the same timer can be used with a multi-phase search process such as grouping.static CollectorMultiCollector. wrap(Collector... collectors)Wraps a list ofCollectors with aMultiCollector.Constructors in org.apache.lucene.search with parameters of type Collector Constructor Description PositiveScoresOnlyCollector(Collector c)TimeLimitingCollector(Collector collector, Counter clock, long ticksAllowed)Create a TimeLimitedCollector wrapper over anotherCollectorwith a specified timeout. -
Uses of Collector in org.apache.lucene.search.grouping
Subclasses of Collector in org.apache.lucene.search.grouping Modifier and Type Class Description classAbstractAllGroupHeadsCollector<GH extends AbstractAllGroupHeadsCollector.GroupHead>This collector specializes in collecting the most relevant document (group head) for each group that match the query.classAbstractAllGroupsCollector<GROUP_VALUE_TYPE>A collector that collects all groups that match the query.classAbstractFirstPassGroupingCollector<GROUP_VALUE_TYPE>FirstPassGroupingCollector is the first of two passes necessary to collect grouped hits.classAbstractSecondPassGroupingCollector<GROUP_VALUE_TYPE>SecondPassGroupingCollector is the second of two passes necessary to collect grouped docs.classBlockGroupingCollectorBlockGroupingCollector performs grouping with a single pass collector, as long as you are grouping by a doc block field, ie all documents sharing a given group value were indexed as a doc block using the atomicIndexWriter.addDocuments(java.util.Collection<org.apache.lucene.document.Document>)orIndexWriter.updateDocuments(org.apache.lucene.index.Term, java.util.Collection<org.apache.lucene.document.Document>)API.classTermAllGroupHeadsCollector<GH extends AbstractAllGroupHeadsCollector.GroupHead>A base implementation ofAbstractAllGroupHeadsCollectorfor retrieving the most relevant groups when grouping on a string based group field.classTermAllGroupsCollectorA collector that collects all groups that match the query.classTermFirstPassGroupingCollectorConcrete implementation ofAbstractFirstPassGroupingCollectorthat groups based on field values and more specifically usesFieldCache.StringIndexto collect groups.classTermSecondPassGroupingCollectorConcrete implementation ofAbstractSecondPassGroupingCollectorthat groups based on field values and more specifically usesFieldCache.StringIndexto collect grouped docs. -
Uses of Collector in org.apache.lucene.search.join
Subclasses of Collector in org.apache.lucene.search.join Modifier and Type Class Description classToParentBlockJoinCollectorCollects parent document hits for a Query containing one more more BlockJoinQuery clauses, sorted by the specified parent Sort.
-