Package | Description |
---|---|
org.apache.lucene.demo.facet |
Facets example code.
|
org.apache.lucene.facet |
faceted search
|
org.apache.lucene.facet.range |
Provides range faceting capabilities.
|
org.apache.lucene.index |
Misc index tools and index support.
|
org.apache.lucene.index.sorter |
Provides index sorting capablities.
|
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 |
This package contains a single proximity query, TermAutomatonQuery.
|
org.apache.lucene.search.grouping |
This module enables search result grouping with Lucene, where hits
with the same value in the specified single-valued group field are
grouped together.
|
org.apache.lucene.search.join |
This modules support 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.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.
|
Modifier and Type | Method and Description |
---|---|
static Filter |
DistanceFacetsExample.getBoundingBoxFilter(double originLat,
double originLng,
double maxDistanceKM)
Given a latitude and longitude (in degrees) and the
maximum great circle (surface of the earth) distance,
returns a simple Filter bounding box to "fast match"
candidates.
|
Modifier and Type | Method and Description |
---|---|
void |
DrillDownQuery.add(String dim,
Filter subFilter)
Expert: add a custom drill-down Filter, e.g.
|
DrillSideways.DrillSidewaysResult |
DrillSideways.search(DrillDownQuery query,
Filter filter,
FieldDoc after,
int topN,
Sort sort,
boolean doDocScores,
boolean doMaxScore)
Search, sorting by
Sort , and computing
drill down and sideways counts. |
static TopDocs |
FacetsCollector.search(IndexSearcher searcher,
Query q,
Filter filter,
int n,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
static TopFieldDocs |
FacetsCollector.search(IndexSearcher searcher,
Query q,
Filter filter,
int n,
Sort sort,
boolean doDocScores,
boolean doMaxScore,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
static TopFieldDocs |
FacetsCollector.search(IndexSearcher searcher,
Query q,
Filter filter,
int n,
Sort sort,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
static TopDocs |
FacetsCollector.searchAfter(IndexSearcher searcher,
ScoreDoc after,
Query q,
Filter filter,
int n,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
static TopDocs |
FacetsCollector.searchAfter(IndexSearcher searcher,
ScoreDoc after,
Query q,
Filter filter,
int n,
Sort sort,
boolean doDocScores,
boolean doMaxScore,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
static TopDocs |
FacetsCollector.searchAfter(IndexSearcher searcher,
ScoreDoc after,
Query q,
Filter filter,
int n,
Sort sort,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
Modifier and Type | Method and Description |
---|---|
Filter |
DoubleRange.getFilter(Filter fastMatchFilter,
ValueSource valueSource) |
abstract Filter |
Range.getFilter(Filter fastMatchFilter,
ValueSource valueSource)
Returns a new
Filter accepting only documents
in this range. |
Filter |
LongRange.getFilter(Filter fastMatchFilter,
ValueSource valueSource) |
Filter |
Range.getFilter(ValueSource valueSource)
Returns a new
Filter accepting only documents
in this range. |
Modifier and Type | Method and Description |
---|---|
Filter |
DoubleRange.getFilter(Filter fastMatchFilter,
ValueSource valueSource) |
abstract Filter |
Range.getFilter(Filter fastMatchFilter,
ValueSource valueSource)
Returns a new
Filter accepting only documents
in this range. |
Filter |
LongRange.getFilter(Filter fastMatchFilter,
ValueSource valueSource) |
Constructor and Description |
---|
DoubleRangeFacetCounts(String field,
ValueSource valueSource,
FacetsCollector hits,
Filter fastMatchFilter,
DoubleRange... ranges)
Create
RangeFacetCounts , using the provided
ValueSource , and using the provided Filter as
a fastmatch: only documents passing the filter are
checked for the matching ranges. |
LongRangeFacetCounts(String field,
ValueSource valueSource,
FacetsCollector hits,
Filter fastMatchFilter,
LongRange... ranges)
Create
RangeFacetCounts , using the provided
ValueSource , and using the provided Filter as
a fastmatch: only documents passing the filter are
checked for the matching ranges. |
Constructor and Description |
---|
PKIndexSplitter(Directory input,
Directory dir1,
Directory dir2,
Filter docsInFirstIndex,
IndexWriterConfig config1,
IndexWriterConfig config2) |
PKIndexSplitter(Version version,
Directory input,
Directory dir1,
Directory dir2,
Filter docsInFirstIndex)
Split an index based on a
Filter . |
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.
|
Modifier and Type | Class and Description |
---|---|
class |
BooleanFilter
A container Filter that allows Boolean composition of Filters.
|
class |
ChainedFilter
Allows multiple
Filter s to be chained. |
class |
TermFilter
A filter that includes documents that match with a specific term.
|
class |
TermsFilter
Constructs a filter for docs matching any of the terms added to this class.
|
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) |
Constructor and Description |
---|
ChainedFilter(Filter[] chain)
Ctor.
|
ChainedFilter(Filter[] chain,
int logic)
Ctor.
|
ChainedFilter(Filter[] chain,
int[] logicArray)
Ctor.
|
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 |
DuplicateFilterBuilder.getFilter(Element e) |
Filter |
RangeFilterBuilder.getFilter(Element e) |
Filter |
TermsFilterBuilder.getFilter(Element e) |
Filter |
BooleanFilterBuilder.getFilter(Element e) |
Filter |
NumericRangeFilterBuilder.getFilter(Element e) |
Filter |
CachedFilterBuilder.getFilter(Element e) |
Modifier and Type | Class and Description |
---|---|
class |
DuplicateFilter
Filter to remove duplicate values from search results.
|
class |
SlowCollatedTermRangeFilter
Deprecated.
Index collation keys with CollationKeyAnalyzer or ICUCollationKeyAnalyzer instead.
This class will be removed in Lucene 5.0
|
Modifier and Type | Class and Description |
---|---|
static class |
BaseExplanationTestCase.ItemizedFilter
Convenience subclass of FieldCacheTermsFilter
|
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 (in
FieldCache ). |
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. |
Filter |
CachingWrapperFilter.getFilter()
Gets the contained filter.
|
protected Filter |
SearchEquivalenceTestBase.randomFilter()
Returns a random filter over the document set
|
Modifier and Type | Method and Description |
---|---|
protected void |
SearchEquivalenceTestBase.assertSubsetOf(Query q1,
Query q2,
Filter filter)
Asserts that the documents returned by
q1
are a subset of those returned by q2 . |
void |
CheckHits.ExplanationAssertingSearcher.search(Query query,
Filter filter,
Collector results) |
void |
IndexSearcher.search(Query query,
Filter filter,
Collector results)
Lower-level search API.
|
TopDocs |
CheckHits.ExplanationAssertingSearcher.search(Query query,
Filter filter,
int n) |
TopDocs |
IndexSearcher.search(Query query,
Filter filter,
int n)
Finds the top
n
hits for query , applying filter if non-null. |
TopFieldDocs |
CheckHits.ExplanationAssertingSearcher.search(Query query,
Filter filter,
int n,
Sort sort) |
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 |
AssertingIndexSearcher.wrapFilter(Query query,
Filter filter) |
protected Query |
IndexSearcher.wrapFilter(Query query,
Filter filter) |
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
protected TopGroups<?> |
GroupingSearch.groupByDocBlock(IndexSearcher searcher,
Filter filter,
Query query,
int groupOffset,
int groupLimit) |
protected TopGroups |
GroupingSearch.groupByFieldOrFunction(IndexSearcher searcher,
Filter filter,
Query query,
int groupOffset,
int groupLimit) |
<T> TopGroups<T> |
GroupingSearch.search(IndexSearcher searcher,
Filter filter,
Query query,
int groupOffset,
int groupLimit)
Executes a grouped search.
|
Constructor and Description |
---|
BlockGroupingCollector(Sort groupSort,
int topNGroups,
boolean needsScores,
Filter lastDocPerGroup)
Create the single pass collector.
|
GroupingSearch(Filter groupEndDocs)
Constructor for grouping documents by doc block.
|
Modifier and Type | Class and Description |
---|---|
class |
FixedBitSetCachingWrapperFilter
A
CachingWrapperFilter that caches sets using a FixedBitSet ,
as required for joins. |
Constructor and Description |
---|
FixedBitSetCachingWrapperFilter(Filter filter)
Sole constructor, see
CachingWrapperFilter.CachingWrapperFilter(Filter) . |
Highest(FieldComparator<Object> wrappedComparator,
Filter parentFilter,
Filter childFilter,
int spareSlot)
Create ToParentBlockJoinFieldComparator.Highest
|
Lowest(FieldComparator<Object> wrappedComparator,
Filter parentFilter,
Filter childFilter,
int spareSlot)
Create ToParentBlockJoinFieldComparator.Lowest
|
ToChildBlockJoinQuery(Query parentQuery,
Filter parentsFilter,
boolean doScores)
Create a ToChildBlockJoinQuery.
|
ToParentBlockJoinQuery(Query childQuery,
Filter parentsFilter,
ScoreMode scoreMode)
Create a ToParentBlockJoinQuery.
|
ToParentBlockJoinSortField(String field,
SortField.Type type,
boolean reverse,
boolean order,
Filter parentFilter,
Filter childFilter)
Create ToParentBlockJoinSortField.
|
ToParentBlockJoinSortField(String field,
SortField.Type type,
boolean reverse,
Filter parentFilter,
Filter childFilter)
Create ToParentBlockJoinSortField.
|
Modifier and Type | Class and Description |
---|---|
class |
DisjointSpatialFilter
Deprecated.
See https://issues.apache.org/jira/browse/LUCENE-5692
|
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 | Class and Description |
---|---|
class |
AbstractPrefixTreeFilter
Base class for Lucene Filters on SpatialPrefixTree fields.
|
class |
AbstractVisitingPrefixTreeFilter
Traverses a
SpatialPrefixTree indexed field, using the template &
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 |
---|---|
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.