Uses of Class
org.apache.lucene.search.Filter
-
Packages that use Filter Package Description org.apache.lucene.search Code to search indices. -
-
Uses of Filter in org.apache.lucene.search
Subclasses of Filter in org.apache.lucene.search Modifier and Type Class Description classCachingWrapperFilterWraps anotherFilter's result and caches it.classDocTermOrdsRangeFilterA range filter built on top of a cached multi-valued term field (inFieldCache).classFieldCacheRangeFilter<T>A range filter built on top of a cached single term field (inFieldCache).classFieldCacheTermsFilterAFilterthat only accepts documents whose single term value in the specified field is contained in the provided set of allowed terms.classFieldValueFilterAFilterthat accepts all documents that have one or more values in a given field.classMultiTermQueryWrapperFilter<Q extends MultiTermQuery>A wrapper forMultiTermQuery, that exposes its functionality as aFilter.classNumericRangeFilter<T extends Number>AFilterthat only accepts numeric values within a specified range.classPrefixFilterA Filter that restricts search results to values that have a matching prefix in a given field.classQueryWrapperFilterConstrains search results to only match those which also match a provided query.classTermRangeFilterA Filter that restricts search results to a range of term values in a given field.Fields in org.apache.lucene.search declared as Filter Modifier and Type Field Description protected FilterConstantScoreQuery. filterMethods in org.apache.lucene.search that return Filter Modifier and Type Method Description FilterCachingWrapperFilter. getFilter()Gets the contained filter.FilterConstantScoreQuery. getFilter()Returns the encapsulated filter, returnsnullif a query is wrapped.FilterFilteredQuery. getFilter()Returns this FilteredQuery's filterMethods in org.apache.lucene.search with parameters of type Filter Modifier and Type Method Description TopDocsIndexSearcher. search(Query query, Filter filter, int n)Finds the topnhits forquery, applyingfilterif non-null.TopFieldDocsIndexSearcher. search(Query query, Filter filter, int n, Sort sort)Search implementation with arbitrary sorting.TopFieldDocsIndexSearcher. search(Query query, Filter filter, int n, Sort sort, boolean doDocScores, boolean doMaxScore)Search implementation with arbitrary sorting, plus control over whether hit scores and max score should be computed.voidIndexSearcher. search(Query query, Filter filter, Collector results)Lower-level search API.TopDocsIndexSearcher. searchAfter(ScoreDoc after, Query query, Filter filter, int n)Finds the topnhits forquery, applyingfilterif non-null, where all results are after a previous result (after).TopDocsIndexSearcher. searchAfter(ScoreDoc after, Query query, Filter filter, int n, Sort sort)Finds the topnhits forquery, applyingfilterif non-null, where all results are after a previous result (after).TopDocsIndexSearcher. searchAfter(ScoreDoc after, Query query, Filter filter, int n, Sort sort, boolean doDocScores, boolean doMaxScore)Finds the topnhits forquerywhere all results are after a previous result (after), allowing control over whether hit scores and max score should be computed.protected QueryIndexSearcher. wrapFilter(Query query, Filter filter)Constructors in org.apache.lucene.search with parameters of type Filter Constructor Description CachingWrapperFilter(Filter filter)Wraps another filter's result and caches it.ConstantScoreQuery(Filter filter)Wraps a Filter as a Query.FilteredQuery(Query query, Filter filter)Constructs a new query which applies a filter to the results of the original query.FilteredQuery(Query query, Filter filter, FilteredQuery.FilterStrategy strategy)Expert: Constructs a new query which applies a filter to the results of the original query.
-