Package | Description |
---|---|
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 |
Code to search indices.
|
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.
|
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) |
Filter |
LongRange.getFilter(Filter fastMatchFilter,
ValueSource valueSource) |
abstract Filter |
Range.getFilter(Filter fastMatchFilter,
ValueSource valueSource)
Returns a new
Filter accepting only documents
in this range. |
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) |
Filter |
LongRange.getFilter(Filter fastMatchFilter,
ValueSource valueSource) |
abstract Filter |
Range.getFilter(Filter fastMatchFilter,
ValueSource valueSource)
Returns a new
Filter accepting only documents
in this range. |
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 |
FilterBuilderFactory.getFilter(Element n) |
Filter |
FilterBuilder.getFilter(Element e) |
Modifier and Type | Method and Description |
---|---|
Filter |
RangeFilterBuilder.getFilter(Element e) |
Filter |
DuplicateFilterBuilder.getFilter(Element e) |
Filter |
NumericRangeFilterBuilder.getFilter(Element e) |
Filter |
TermsFilterBuilder.getFilter(Element e) |
Filter |
CachedFilterBuilder.getFilter(Element e) |
Filter |
BooleanFilterBuilder.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 |
---|---|
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 |
ConstantScoreQuery.getFilter()
Returns the encapsulated filter, returns
null if a query is wrapped. |
Filter |
CachingWrapperFilter.getFilter()
Gets the contained filter.
|
Filter |
FilteredQuery.getFilter()
Returns this FilteredQuery's filter
|
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.
|
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) . |
ToChildBlockJoinQuery(Query parentQuery,
Filter parentsFilter,
boolean doScores)
Create a ToChildBlockJoinQuery.
|
ToParentBlockJoinFieldComparator.Highest(FieldComparator<Object> wrappedComparator,
Filter parentFilter,
Filter childFilter,
int spareSlot)
Create ToParentBlockJoinFieldComparator.Highest
|
ToParentBlockJoinFieldComparator.Lowest(FieldComparator<Object> wrappedComparator,
Filter parentFilter,
Filter childFilter,
int spareSlot)
Create ToParentBlockJoinFieldComparator.Lowest
|
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.
|
Copyright © 2000-2016 The Apache Software Foundation. All Rights Reserved.