Uses of Interface
org.apache.lucene.search.Collector
-
Packages that use Collector Package Description org.apache.lucene.monitor Monitoring frameworkorg.apache.lucene.search Code to search indices.org.apache.lucene.search.grouping Grouping.org.apache.lucene.search.join Support for index-time and query-time joins.org.apache.lucene.search.suggest.document Support for document suggestion -
-
Uses of Collector in org.apache.lucene.monitor
Classes in org.apache.lucene.monitor that implement Collector Modifier and Type Class Description private classCollectingMatcher.MatchCollector(package private) static classQueryIndex.MonitorQueryCollectorA Collector that decodes the stored query for each document hit. -
Uses of Collector in org.apache.lucene.search
Classes in org.apache.lucene.search with type parameters of type Collector Modifier and Type Interface Description interfaceCollectorManager<C extends Collector,T>A manager of collectors.Classes in org.apache.lucene.search that implement Collector 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.private static classCachingCollector.NoScoreCachingCollectorprivate static classCachingCollector.ScoreCachingCollectorclassDiversifiedTopDocsCollectorATopDocsCollectorthat controls diversity in results by ensuring no more than maxHitsPerKey results from a common source are collected in the final results.classDocValuesStatsCollectorACollectorwhich computes statistics for a DocValues field.classFilterCollectorCollectordelegator.classLargeNumHitsTopDocsCollectorOptimized collector for large number of hits.classMemoryAccountingBitsetCollectorBitset collector which supports memory trackingclassMultiCollectorclassMultiCollectorManager.CollectorsclassPositiveScoresOnlyCollectorclassSimpleCollectorBaseCollectorimplementation that is used to collect all contexts.classTimeLimitingCollectorTheTimeLimitingCollectoris 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.classTopFieldCollectorprivate static classTopFieldCollector.PagingFieldCollectorprivate static classTopFieldCollector.SimpleFieldCollectorclassTopScoreDocCollectorprivate static classTopScoreDocCollector.PagingTopScoreDocCollectorprivate static classTopScoreDocCollector.SimpleTopScoreDocCollectorclassTotalHitCountCollectorJust counts the total number of hits.Fields in org.apache.lucene.search declared as Collector Modifier and Type Field Description private CollectorTimeLimitingCollector. collectorprivate Collector[]MultiCollector. collectorsprivate Collector[]MultiCollectorManager.Collectors. collectorsprotected CollectorFilterCollector. inMethods in org.apache.lucene.search with type parameters of type Collector Modifier and Type Method Description <C extends Collector,T>
TIndexSearcher. search(Query query, CollectorManager<C,T> collectorManager)Lower-level search API.Methods in org.apache.lucene.search that return Collector Modifier and Type Method Description static CollectorMultiCollector. wrap(java.lang.Iterable<? extends Collector> collectors)Wraps a list ofCollectors with aMultiCollector.static CollectorMultiCollector. wrap(Collector... collectors)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.voidCachingCollector.NoScoreCachingCollector. replay(Collector other)abstract voidCachingCollector. replay(Collector other)Replays the cached doc IDs (and scores) to the given Collector.protected voidIndexSearcher. search(java.util.List<LeafReaderContext> leaves, Weight weight, Collector collector)Lower-level search API.voidIndexSearcher. search(Query query, Collector results)Lower-level search API.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)Method parameters in org.apache.lucene.search with type arguments of type Collector Modifier and Type Method Description static CollectorMultiCollector. wrap(java.lang.Iterable<? extends Collector> collectors)Wraps a list ofCollectors with aMultiCollector.Constructors in org.apache.lucene.search with parameters of type Collector Constructor Description CachingCollector(Collector in)FilterCollector(Collector in)Sole constructor.MultiCollector(Collector... collectors)NoScoreCachingCollector(Collector in, int maxDocsToCache)PositiveScoresOnlyCollector(Collector in)ScoreCachingCollector(Collector in, int maxDocsToCache)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
Classes in org.apache.lucene.search.grouping with type parameters of type Collector Modifier and Type Class Description classGroupReducer<T,C extends Collector>Concrete implementations of this class define what to collect for individual groups during the second-pass of a grouping search.private static classGroupReducer.GroupCollector<C extends Collector>Classes in org.apache.lucene.search.grouping that implement Collector Modifier and Type Class Description classAllGroupHeadsCollector<T>This collector specializes in collecting the most relevant document (group head) for each group that matches the query.private static classAllGroupHeadsCollector.ScoringGroupHeadsCollector<T>Specialized implementation for sorting by scoreprivate static classAllGroupHeadsCollector.SortingGroupHeadsCollector<T>General implementation using aFieldComparatorto select the group headclassAllGroupsCollector<T>A collector that collects all groups that match the query.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()orIndexWriter.updateDocuments()API.classDistinctValuesCollector<T,R>A second pass grouping collector that keeps track of distinct values for a specified field for the top N group.private static classDistinctValuesCollector.ValuesCollector<R>classFirstPassGroupingCollector<T>FirstPassGroupingCollector is the first of two passes necessary to collect grouped hits.classGroupFacetCollectorBase class for computing grouped facets.classSecondPassGroupingCollector<T>SecondPassGroupingCollector runs over an already collected set of groups, further applying aGroupReducerto each groupclassTermGroupFacetCollectorAn implementation ofGroupFacetCollectorthat computes grouped facets based on the indexed terms from DocValues.(package private) static classTermGroupFacetCollector.MV(package private) static classTermGroupFacetCollector.SVclassTopGroupsCollector<T>A second-pass collector that collects the TopDocs for each group, and returns them as aTopGroupsobjectprivate static classTopGroupsCollector.MaxScoreCollectorprivate static classTopGroupsCollector.TopDocsAndMaxScoreCollectorFields in org.apache.lucene.search.grouping declared as Collector Modifier and Type Field Description (package private) CGroupReducer.GroupCollector. collector -
Uses of Collector in org.apache.lucene.search.join
Subinterfaces of Collector in org.apache.lucene.search.join Modifier and Type Interface Description (package private) interfaceGenericTermsCollectorClasses in org.apache.lucene.search.join that implement Collector Modifier and Type Class Description (package private) classDocValuesTermsCollector<DV>(package private) classGlobalOrdinalsCollectorA collector that collects all ordinals from a specified field matching the query.(package private) classGlobalOrdinalsWithScoreCollector(package private) static classGlobalOrdinalsWithScoreCollector.Avg(package private) static classGlobalOrdinalsWithScoreCollector.Max(package private) static classGlobalOrdinalsWithScoreCollector.Min(package private) static classGlobalOrdinalsWithScoreCollector.NoScore(package private) static classGlobalOrdinalsWithScoreCollector.Sum(package private) classTermsCollector<DV>A collector that collects all terms from a specified field matching the query.(package private) static classTermsCollector.MV(package private) static classTermsCollector.SV(package private) classTermsWithScoreCollector<DV>(package private) static classTermsWithScoreCollector.MV(package private) static classTermsWithScoreCollector.MV.Avg(package private) static classTermsWithScoreCollector.SV(package private) static classTermsWithScoreCollector.SV.Avg -
Uses of Collector in org.apache.lucene.search.suggest.document
Classes in org.apache.lucene.search.suggest.document that implement Collector Modifier and Type Class Description classTopSuggestDocsCollectorCollectorthat collects completion and score, along with document id
-