Package | Description |
---|---|
org.apache.lucene.search |
Code to search indices.
|
Modifier and Type | Class and Description |
---|---|
class |
CachingWrapperFilter
Wraps another
Filter 's result and caches it. |
class |
DocTermOrdsRangeFilter
A range filter built on top of a cached multi-valued term field (from
LeafReader.getSortedSetDocValues(java.lang.String) ). |
class |
DocValuesRangeFilter<T>
A range filter built on top of numeric doc values field
(from
LeafReader.getNumericDocValues(String) ). |
class |
DocValuesTermsFilter
A
Filter that only accepts documents whose single
term value in the specified field is contained in the
provided set of allowed terms. |
class |
FieldValueFilter
A
Filter that accepts all documents that have one or more values in a
given field. |
class |
MultiTermQueryWrapperFilter<Q extends MultiTermQuery>
A wrapper for
MultiTermQuery , that exposes its
functionality as a Filter . |
class |
NumericRangeFilter<T extends Number>
A
Filter that only accepts numeric values within
a specified range. |
class |
PrefixFilter
A Filter that restricts search results to values that have a matching prefix in a given
field.
|
class |
QueryWrapperFilter
Constrains search results to only match those which also match a provided
query.
|
class |
TermRangeFilter
A Filter that restricts search results to a range of term
values in a given field.
|
Modifier and Type | Field and Description |
---|---|
protected Filter |
ConstantScoreQuery.filter |
Modifier and Type | Method and Description |
---|---|
Filter |
LRUFilterCache.doCache(Filter filter,
FilterCachingPolicy policy) |
Filter |
FilterCache.doCache(Filter filter,
FilterCachingPolicy policy)
Return a wrapper around the provided
filter that will cache
DocIdSet s per-segment accordingly to the given policy . |
Filter |
FilteredQuery.getFilter()
Returns this FilteredQuery's filter
|
Filter |
ConstantScoreQuery.getFilter()
Returns the encapsulated filter, returns
null if a query is wrapped. |
Filter |
CachingWrapperFilter.getFilter()
Gets the contained filter.
|
Modifier and Type | Method and Description |
---|---|
void |
LRUFilterCache.clearFilter(Filter filter)
Remove all cache entries for the given filter.
|
Filter |
LRUFilterCache.doCache(Filter filter,
FilterCachingPolicy policy) |
Filter |
FilterCache.doCache(Filter filter,
FilterCachingPolicy policy)
Return a wrapper around the provided
filter that will cache
DocIdSet s per-segment accordingly to the given policy . |
protected void |
LRUFilterCache.onFilterCache(Filter filter,
long ramBytesUsed)
Expert: callback when a filter is added to this cache.
|
protected void |
LRUFilterCache.onFilterEviction(Filter filter,
long ramBytesUsed)
Expert: callback when a filter is evicted from this cache.
|
protected void |
LRUFilterCache.onHit(Object readerCoreKey,
Filter filter)
Expert: callback when there is a cache hit on a given filter.
|
protected void |
LRUFilterCache.onMiss(Object readerCoreKey,
Filter filter)
Expert: callback when there is a cache miss on a given filter.
|
void |
UsageTrackingFilterCachingPolicy.onUse(Filter filter) |
void |
FilterCachingPolicy.onUse(Filter filter)
Callback that is called every time that a cached filter is used.
|
void |
FilterCachingPolicy.CacheOnLargeSegments.onUse(Filter filter) |
protected long |
LRUFilterCache.ramBytesUsed(Filter filter)
Return the number of bytes used by the given filter.
|
void |
IndexSearcher.search(Query query,
Filter filter,
Collector results)
Lower-level search API.
|
TopDocs |
IndexSearcher.search(Query query,
Filter filter,
int n)
Finds the top
n
hits for query , applying filter if non-null. |
TopFieldDocs |
IndexSearcher.search(Query query,
Filter filter,
int n,
Sort sort)
Search implementation with arbitrary sorting.
|
TopFieldDocs |
IndexSearcher.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.
|
TopDocs |
IndexSearcher.searchAfter(ScoreDoc after,
Query query,
Filter filter,
int n)
Finds the top
n
hits for query , applying filter if non-null,
where all results are after a previous result (after ). |
TopDocs |
IndexSearcher.searchAfter(ScoreDoc after,
Query query,
Filter filter,
int n,
Sort sort)
Finds the top
n
hits for query , applying filter if non-null,
where all results are after a previous result (after ). |
TopDocs |
IndexSearcher.searchAfter(ScoreDoc after,
Query query,
Filter filter,
int n,
Sort sort,
boolean doDocScores,
boolean doMaxScore)
Finds the top
n
hits for query where all results are after a previous
result (after ), allowing control over
whether hit scores and max score should be computed. |
boolean |
UsageTrackingFilterCachingPolicy.shouldCache(Filter filter,
LeafReaderContext context,
DocIdSet set) |
boolean |
FilterCachingPolicy.shouldCache(Filter filter,
LeafReaderContext context,
DocIdSet set)
Whether the given
DocIdSet should be cached on a given segment. |
boolean |
FilterCachingPolicy.CacheOnLargeSegments.shouldCache(Filter filter,
LeafReaderContext context,
DocIdSet set) |
protected Query |
IndexSearcher.wrapFilter(Query query,
Filter filter) |
Constructor and Description |
---|
CachingWrapperFilter(Filter filter)
Same as
CachingWrapperFilter.CachingWrapperFilter(Filter, FilterCachingPolicy)
but enforces the use of the
FilterCachingPolicy.CacheOnLargeSegments.DEFAULT policy. |
CachingWrapperFilter(Filter filter,
FilterCachingPolicy policy)
Wraps another filter's result and caches it according to the provided policy.
|
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.
|
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.