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.
|
org.apache.lucene.spatial |
Lucene spatial search
|
org.apache.lucene.spatial.bbox |
Bounding Box Spatial Strategy
|
org.apache.lucene.spatial.composite |
Composite strategies.
|
org.apache.lucene.spatial.prefix |
Prefix Tree Strategy.
|
org.apache.lucene.spatial.serialized |
Strategies that serialize the shape (non-indexed).
|
org.apache.lucene.spatial.util |
Various spatial utilities.
|
org.apache.lucene.spatial.vector |
Spatial strategy that uses two fields.
|
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 |
FilterBuilder.getFilter(Element e) |
Filter |
FilterBuilderFactory.getFilter(Element n) |
Modifier and Type | Method and Description |
---|---|
Filter |
RangeFilterBuilder.getFilter(Element e) |
Filter |
BooleanFilterBuilder.getFilter(Element e) |
Filter |
DuplicateFilterBuilder.getFilter(Element e) |
Filter |
TermsFilterBuilder.getFilter(Element e) |
Filter |
CachedFilterBuilder.getFilter(Element e) |
Filter |
NumericRangeFilterBuilder.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
Constrains search results to only match those which also match a provided
query.
|
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 |
FilterCachingPolicy.onUse(Filter filter)
Deprecated.
Callback that is called every time that a cached filter is used.
|
void |
FilterCachingPolicy.CacheOnLargeSegments.onUse(Filter filter) |
void |
UsageTrackingFilterCachingPolicy.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 |
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) |
boolean |
UsageTrackingFilterCachingPolicy.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 |
---|
BlockJoinComparatorSource(Filter parentsFilter,
Sort parentSort)
Create a new BlockJoinComparatorSource, sorting only blocks of documents
with
parentSort and not reordering children with a block. |
BlockJoinComparatorSource(Filter parentsFilter,
Sort parentSort,
Sort childSort)
Create a new BlockJoinComparatorSource, specifying the sort order for both
blocks of documents and children within a block.
|
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.
|
Modifier and Type | Method and Description |
---|---|
abstract Filter |
SpatialStrategy.makeFilter(SpatialArgs args)
|
Modifier and Type | Method and Description |
---|---|
Filter |
BBoxStrategy.makeFilter(SpatialArgs args) |
Modifier and Type | Method and Description |
---|---|
Filter |
CompositeSpatialStrategy.makeFilter(SpatialArgs args) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractPrefixTreeFilter
Base class for Lucene Filters on SpatialPrefixTree fields.
|
class |
AbstractVisitingPrefixTreeFilter
Traverses a
SpatialPrefixTree indexed field, using the template and
visitor design patterns for subclasses to guide the traversal and collect
matching documents. |
class |
ContainsPrefixTreeFilter
Finds docs where its indexed shape
CONTAINS the query shape. |
class |
IntersectsPrefixTreeFilter
A Filter matching documents that have an
SpatialRelation.INTERSECTS
(i.e. |
class |
WithinPrefixTreeFilter
Finds docs where its indexed shape is
WITHIN the query shape. |
Modifier and Type | Method and Description |
---|---|
Filter |
RecursivePrefixTreeStrategy.makeFilter(SpatialArgs args) |
Filter |
TermQueryPrefixTreeStrategy.makeFilter(SpatialArgs args) |
Modifier and Type | Method and Description |
---|---|
HeatmapFacetCounter.Heatmap |
PrefixTreeStrategy.calcFacets(IndexReaderContext context,
Filter filter,
com.spatial4j.core.shape.Shape inputShape,
int facetLevel,
int maxCells)
Computes spatial facets in two dimensions as a grid of numbers.
|
static HeatmapFacetCounter.Heatmap |
HeatmapFacetCounter.calcFacets(PrefixTreeStrategy strategy,
IndexReaderContext context,
Filter filter,
com.spatial4j.core.shape.Shape inputShape,
int facetLevel,
int maxCells)
Calculates spatial 2D facets (aggregated counts) in a grid, sometimes called a heatmap.
|
static void |
PrefixTreeFacetCounter.compute(PrefixTreeStrategy strategy,
IndexReaderContext context,
Filter filter,
com.spatial4j.core.shape.Shape queryShape,
int facetLevel,
PrefixTreeFacetCounter.FacetVisitor facetVisitor)
Computes facets using a callback/visitor style design, allowing flexibility for the caller to determine what to do
with each underlying count.
|
Modifier and Type | Method and Description |
---|---|
Filter |
SerializedDVStrategy.makeFilter(SpatialArgs args)
Returns a Filter that should be used with
FilteredQuery.QUERY_FIRST_FILTER_STRATEGY . |
Modifier and Type | Class and Description |
---|---|
class |
ValueSourceFilter
Filter that matches all documents where a ValueSource is
in between a range of
min and max inclusive. |
Constructor and Description |
---|
ValueSourceFilter(Filter startingFilter,
ValueSource source,
double min,
double max) |
Modifier and Type | Method and Description |
---|---|
Filter |
PointVectorStrategy.makeFilter(SpatialArgs args) |
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.