Package | Description |
---|---|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.queries |
Filters and Queries that add to core Lucene.
|
org.apache.lucene.queryparser.xml |
Parser that produces Lucene Query objects from XML streams.
|
org.apache.lucene.queryparser.xml.builders |
XML Parser factories for different Lucene Query/Filters.
|
org.apache.lucene.sandbox.queries |
Additional queries (some may have caveats or limitations)
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.join |
Support for index-time and query-time joins.
|
Constructor and Description |
---|
PKIndexSplitter(Directory input,
Directory dir1,
Directory dir2,
Filter docsInFirstIndex)
Split an index based on a
Filter . |
PKIndexSplitter(Directory input,
Directory dir1,
Directory dir2,
Filter docsInFirstIndex,
IndexWriterConfig config1,
IndexWriterConfig config2) |
Modifier and Type | Class and Description |
---|---|
class |
BooleanFilter
Deprecated.
Use a
QueryWrapperFilter on a BooleanQuery instead |
class |
TermFilter
Deprecated.
Use QueryWrapperFilter(TermQuery) instead.
|
class |
TermsFilter
Deprecated.
Use a
QueryWrapperFilter over a TermsQuery instead |
Modifier and Type | Method and Description |
---|---|
Filter |
FilterClause.getFilter()
Returns this FilterClause's filter
|
Modifier and Type | Method and Description |
---|---|
void |
BooleanFilter.add(Filter filter,
BooleanClause.Occur occur)
Deprecated.
|
Constructor and Description |
---|
FilterClause(Filter filter,
BooleanClause.Occur occur)
Create a new FilterClause
|
Modifier and Type | Method and Description |
---|---|
Filter |
FilterBuilderFactory.getFilter(Element n) |
Filter |
FilterBuilder.getFilter(Element e) |
Modifier and Type | Method and Description |
---|---|
Filter |
TermsFilterBuilder.getFilter(Element e) |
Filter |
NumericRangeFilterBuilder.getFilter(Element e) |
Filter |
DuplicateFilterBuilder.getFilter(Element e) |
Filter |
CachedFilterBuilder.getFilter(Element e)
Deprecated.
|
Filter |
RangeFilterBuilder.getFilter(Element e) |
Filter |
BooleanFilterBuilder.getFilter(Element e) |
Modifier and Type | Class and Description |
---|---|
class |
DuplicateFilter
Deprecated.
This class will be removed in Lucene 6.0. DiversifiedTopDocsCollector
should be used instead with a maximum number of hits per key
equal to 1.
|
Modifier and Type | Class and Description |
---|---|
class |
CachingWrapperFilter
Deprecated.
Use
CachingWrapperQuery and BooleanClause.Occur.FILTER clauses instead |
class |
DocTermOrdsRangeFilter
Deprecated.
Use
DocValuesRangeQuery instead |
class |
DocValuesRangeFilter<T>
Deprecated.
Use
DocValuesRangeQuery instead |
class |
DocValuesTermsFilter
Deprecated.
Use
DocValuesTermsQuery and boolean BooleanClause.Occur.FILTER clauses instead |
class |
FieldValueFilter
Deprecated.
Use
FieldValueQuery instead |
class |
MultiTermQueryWrapperFilter<Q extends MultiTermQuery>
Deprecated.
Use
MultiTermQueryConstantScoreWrapper instead |
class |
NumericRangeFilter<T extends Number>
Deprecated.
Use
NumericRangeQuery and BooleanClause.Occur.FILTER clauses instead. |
class |
PrefixFilter
Deprecated.
Use
PrefixQuery and BooleanClause.Occur.FILTER clauses instead. |
class |
QueryWrapperFilter
Deprecated.
You can use
Query objects directly for filtering by using
BooleanClause.Occur.FILTER clauses in a BooleanQuery . |
class |
TermRangeFilter
Deprecated.
Use
TermRangeQuery and BooleanClause.Occur.FILTER clauses instead. |
Modifier and Type | Method and Description |
---|---|
Filter |
LRUFilterCache.doCache(Filter filter,
FilterCachingPolicy policy)
Deprecated.
|
Filter |
FilterCache.doCache(Filter filter,
FilterCachingPolicy policy)
Deprecated.
Return a wrapper around the provided
filter that will cache
DocIdSet s per-segment accordingly to the given policy . |
Filter |
FilteredQuery.getFilter()
Deprecated.
Returns this FilteredQuery's filter
|
Filter |
CachingWrapperFilter.getFilter()
Deprecated.
Gets the contained filter.
|
Modifier and Type | Method and Description |
---|---|
void |
LRUFilterCache.clearFilter(Filter filter)
Deprecated.
Remove all cache entries for the given filter.
|
Filter |
LRUFilterCache.doCache(Filter filter,
FilterCachingPolicy policy)
Deprecated.
|
Filter |
FilterCache.doCache(Filter filter,
FilterCachingPolicy policy)
Deprecated.
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)
Deprecated.
Expert: callback when a filter is added to this cache.
|
protected void |
LRUFilterCache.onFilterEviction(Filter filter,
long ramBytesUsed)
Deprecated.
Expert: callback when a filter is evicted from this cache.
|
protected void |
LRUFilterCache.onHit(Object readerCoreKey,
Filter filter)
Deprecated.
Expert: callback when there is a cache hit on a given filter.
|
protected void |
LRUFilterCache.onMiss(Object readerCoreKey,
Filter filter)
Deprecated.
Expert: callback when there is a cache miss on a given filter.
|
void |
UsageTrackingFilterCachingPolicy.onUse(Filter filter) |
void |
FilterCachingPolicy.onUse(Filter filter)
Deprecated.
Callback that is called every time that a cached filter is used.
|
void |
FilterCachingPolicy.CacheOnLargeSegments.onUse(Filter filter) |
protected long |
LRUFilterCache.ramBytesUsed(Filter filter)
Deprecated.
Return the number of bytes used by the given filter.
|
abstract Query |
FilteredQuery.FilterStrategy.rewrite(Filter filter)
Rewrite the filter.
|
Query |
FilteredQuery.RandomAccessFilterStrategy.rewrite(Filter filter) |
void |
IndexSearcher.search(Query query,
Filter filter,
Collector results)
Deprecated.
Use
boolean queries with
BooleanClause.Occur.FILTER clauses instead |
TopDocs |
IndexSearcher.search(Query query,
Filter filter,
int n)
Deprecated.
Use
boolean queries with
BooleanClause.Occur.FILTER clauses instead |
TopFieldDocs |
IndexSearcher.search(Query query,
Filter filter,
int n,
Sort sort)
Deprecated.
Use
boolean queries with
BooleanClause.Occur.FILTER clauses instead |
TopFieldDocs |
IndexSearcher.search(Query query,
Filter filter,
int n,
Sort sort,
boolean doDocScores,
boolean doMaxScore)
Deprecated.
Use
boolean queries with
BooleanClause.Occur.FILTER clauses instead |
TopDocs |
IndexSearcher.searchAfter(ScoreDoc after,
Query query,
Filter filter,
int n)
Deprecated.
Use
boolean queries with
BooleanClause.Occur.FILTER clauses instead |
TopFieldDocs |
IndexSearcher.searchAfter(ScoreDoc after,
Query query,
Filter filter,
int n,
Sort sort)
Deprecated.
Use
boolean queries with
BooleanClause.Occur.FILTER clauses instead |
TopFieldDocs |
IndexSearcher.searchAfter(ScoreDoc after,
Query query,
Filter filter,
int numHits,
Sort sort,
boolean doDocScores,
boolean doMaxScore)
Deprecated.
Use
boolean queries with
BooleanClause.Occur.FILTER clauses instead |
boolean |
UsageTrackingFilterCachingPolicy.shouldCache(Filter filter,
LeafReaderContext context,
DocIdSet set) |
boolean |
FilterCachingPolicy.shouldCache(Filter filter,
LeafReaderContext context,
DocIdSet set)
Deprecated.
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)
Deprecated.
Use
boolean queries with
BooleanClause.Occur.FILTER clauses instead |
Constructor and Description |
---|
CachingWrapperFilter(Filter filter)
Deprecated.
Same as
CachingWrapperFilter.CachingWrapperFilter(Filter, FilterCachingPolicy)
but enforces the use of the
FilterCachingPolicy.CacheOnLargeSegments.DEFAULT policy. |
CachingWrapperFilter(Filter filter,
FilterCachingPolicy policy)
Deprecated.
Wraps another filter's result and caches it according to the provided policy.
|
FilteredQuery(Query query,
Filter filter)
Deprecated.
Constructs a new query which applies a filter to the results of the original query.
|
FilteredQuery(Query query,
Filter filter,
FilteredQuery.FilterStrategy strategy)
Deprecated.
Expert: Constructs a new query which applies a filter to the results of the original query.
|
Modifier and Type | Class and Description |
---|---|
class |
BitDocIdSetCachingWrapperFilter
Deprecated.
Use
QueryBitSetProducer instead |
class |
BitDocIdSetFilter
Deprecated.
Use
BitSetProducer instead |
Modifier and Type | Method and Description |
---|---|
Filter |
BitDocIdSetCachingWrapperFilter.getFilter()
Deprecated.
Gets the contained filter.
|
Constructor and Description |
---|
BitDocIdSetCachingWrapperFilter(Filter filter)
Deprecated.
Wraps another filter's result and caches it into bitsets.
|
Copyright © 2000-2018 The Apache Software Foundation. All Rights Reserved.