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 |
FieldCacheRangeFilter<T>
A range filter built on top of a cached single term field (in
FieldCache ). |
class |
FieldCacheTermsFilter
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 |
FilteredQuery.getFilter()
Returns this FilteredQuery's filter
|
Filter |
ConstantScoreQuery.getFilter()
Returns the encapsulated filter, returns
null if a query is wrapped. |
Modifier and Type | Method and Description |
---|---|
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. |
protected Query |
IndexSearcher.wrapFilter(Query query,
Filter filter) |
Constructor and Description |
---|
CachingWrapperFilter(Filter filter)
Wraps another filter's result and caches it.
|
CachingWrapperFilter(Filter filter,
boolean recacheDeletes)
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.
|
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.