Package | Description |
---|---|
org.apache.lucene.facet |
faceted search
|
org.apache.lucene.facet.taxonomy |
Taxonomy of Categories
|
org.apache.lucene.index.memory |
High-performance single-document main memory Apache Lucene fulltext search index.
|
org.apache.lucene.queries |
Filters and Queries that add to core Lucene.
|
org.apache.lucene.queries.function |
Queries that compute score based upon a function
|
org.apache.lucene.queries.function.valuesource |
A variety of functions to use with FunctionQuery.
|
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.
|
org.apache.lucene.search.payloads |
The payloads package provides Query mechanisms for finding and using payloads.
|
org.apache.lucene.search.postingshighlight |
Highlighter implementation that uses offsets from postings lists.
|
org.apache.lucene.search.spans |
The calculus of spans.
|
org.apache.lucene.search.suggest.analyzing |
Analyzer based autosuggest.
|
Modifier and Type | Field and Description |
---|---|
protected IndexSearcher |
DrillSideways.searcher
IndexSearcher passed to constructor. |
Modifier and Type | Method and Description |
---|---|
FacetResult |
RandomSamplingFacetsCollector.amortizeFacetCounts(FacetResult res,
FacetsConfig config,
IndexSearcher searcher)
Note: if you use a counting
Facets implementation, you can amortize the
sampled counts by calling this method. |
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.search(IndexSearcher searcher,
Query q,
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,
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 . |
TopDocs |
FacetsCollector.searchAfter(IndexSearcher searcher,
ScoreDoc after,
Query q,
int n,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
Constructor and Description |
---|
DrillSideways(IndexSearcher searcher,
FacetsConfig config,
SortedSetDocValuesReaderState state)
Create a new
DrillSideways instance, assuming the categories were
indexed with SortedSetDocValuesFacetField . |
DrillSideways(IndexSearcher searcher,
FacetsConfig config,
TaxonomyReader taxoReader)
Create a new
DrillSideways instance. |
DrillSideways(IndexSearcher searcher,
FacetsConfig config,
TaxonomyReader taxoReader,
SortedSetDocValuesReaderState state)
Create a new
DrillSideways instance, where some
dimensions were indexed with SortedSetDocValuesFacetField and others were indexed
with FacetField . |
Modifier and Type | Field and Description |
---|---|
IndexSearcher |
SearcherTaxonomyManager.SearcherAndTaxonomy.searcher
Point-in-time
IndexSearcher . |
Constructor and Description |
---|
SearcherTaxonomyManager.SearcherAndTaxonomy(IndexSearcher searcher,
DirectoryTaxonomyReader taxonomyReader)
Create a SearcherAndTaxonomy
|
Modifier and Type | Method and Description |
---|---|
IndexSearcher |
MemoryIndex.createSearcher()
Creates and returns a searcher that can be used to execute arbitrary
Lucene queries and to collect the resulting query results as hits.
|
Modifier and Type | Method and Description |
---|---|
Weight |
CustomScoreQuery.createWeight(IndexSearcher searcher) |
Modifier and Type | Field and Description |
---|---|
protected IndexSearcher |
FunctionQuery.FunctionWeight.searcher |
Modifier and Type | Method and Description |
---|---|
Weight |
FunctionQuery.createWeight(IndexSearcher searcher) |
Weight |
BoostedQuery.createWeight(IndexSearcher searcher) |
void |
ValueSource.createWeight(Map context,
IndexSearcher searcher)
Implementations should propagate createWeight to sub-ValueSources which can optionally store
weight info in the context.
|
static Map |
ValueSource.newContext(IndexSearcher searcher)
Returns a new non-threadsafe context map.
|
Constructor and Description |
---|
FunctionQuery.FunctionWeight(IndexSearcher searcher) |
Modifier and Type | Method and Description |
---|---|
void |
ReciprocalFloatFunction.createWeight(Map context,
IndexSearcher searcher) |
void |
VectorValueSource.createWeight(Map context,
IndexSearcher searcher) |
void |
SumTotalTermFreqValueSource.createWeight(Map context,
IndexSearcher searcher) |
void |
MultiBoolFunction.createWeight(Map context,
IndexSearcher searcher) |
void |
IfFunction.createWeight(Map context,
IndexSearcher searcher) |
void |
MultiFunction.createWeight(Map context,
IndexSearcher searcher) |
void |
DualFloatFunction.createWeight(Map context,
IndexSearcher searcher) |
void |
DocFreqValueSource.createWeight(Map context,
IndexSearcher searcher) |
void |
QueryValueSource.createWeight(Map context,
IndexSearcher searcher) |
void |
RangeMapFloatFunction.createWeight(Map context,
IndexSearcher searcher) |
void |
NormValueSource.createWeight(Map context,
IndexSearcher searcher) |
void |
MultiFloatFunction.createWeight(Map context,
IndexSearcher searcher) |
void |
MaxDocValueSource.createWeight(Map context,
IndexSearcher searcher) |
void |
LinearFloatFunction.createWeight(Map context,
IndexSearcher searcher) |
void |
TotalTermFreqValueSource.createWeight(Map context,
IndexSearcher searcher) |
void |
ScaleFloatFunction.createWeight(Map context,
IndexSearcher searcher) |
void |
SimpleBoolFunction.createWeight(Map context,
IndexSearcher searcher) |
void |
SingleFunction.createWeight(Map context,
IndexSearcher searcher) |
Modifier and Type | Method and Description |
---|---|
IndexSearcher |
SearcherLifetimeManager.acquire(long version)
Retrieve a previously recorded
IndexSearcher , if it
has not yet been closed |
static IndexSearcher |
SearcherManager.getSearcher(SearcherFactory searcherFactory,
IndexReader reader)
Expert: creates a searcher from the provided
IndexReader using the provided SearcherFactory . |
IndexSearcher |
SearcherFactory.newSearcher(IndexReader reader)
Returns a new IndexSearcher over the given reader.
|
protected IndexSearcher |
SearcherManager.refreshIfNeeded(IndexSearcher referenceToRefresh) |
Modifier and Type | Method and Description |
---|---|
Weight |
Query.createWeight(IndexSearcher searcher)
Expert: Constructs an appropriate Weight implementation for this query.
|
Weight |
DisjunctionMaxQuery.createWeight(IndexSearcher searcher)
Create the Weight used to score us
|
Weight |
MultiPhraseQuery.createWeight(IndexSearcher searcher) |
Weight |
ConstantScoreQuery.createWeight(IndexSearcher searcher) |
Weight |
MatchAllDocsQuery.createWeight(IndexSearcher searcher) |
Weight |
TermQuery.createWeight(IndexSearcher searcher) |
Weight |
BooleanQuery.createWeight(IndexSearcher searcher) |
Weight |
FilteredQuery.createWeight(IndexSearcher searcher)
Returns a Weight that applies the filter to the enclosed query's Weight.
|
Weight |
PhraseQuery.createWeight(IndexSearcher searcher) |
protected void |
SearcherManager.decRef(IndexSearcher reference) |
boolean |
SearcherLifetimeManager.Pruner.doPrune(double ageSec,
IndexSearcher searcher)
Return true if this searcher should be removed.
|
boolean |
SearcherLifetimeManager.PruneByAge.doPrune(double ageSec,
IndexSearcher searcher) |
Explanation |
QueryRescorer.explain(IndexSearcher searcher,
Explanation firstPassExplanation,
int docID) |
Explanation |
SortRescorer.explain(IndexSearcher searcher,
Explanation firstPassExplanation,
int docID) |
abstract Explanation |
Rescorer.explain(IndexSearcher searcher,
Explanation firstPassExplanation,
int docID)
Explains how the score for the specified document was
computed.
|
protected int |
SearcherManager.getRefCount(IndexSearcher reference) |
long |
SearcherLifetimeManager.record(IndexSearcher searcher)
Records that you are now using this IndexSearcher.
|
protected IndexSearcher |
SearcherManager.refreshIfNeeded(IndexSearcher referenceToRefresh) |
void |
SearcherLifetimeManager.release(IndexSearcher s)
Release a searcher previously obtained from
SearcherLifetimeManager.acquire(long) . |
TopDocs |
QueryRescorer.rescore(IndexSearcher searcher,
TopDocs firstPassTopDocs,
int topN) |
TopDocs |
SortRescorer.rescore(IndexSearcher searcher,
TopDocs firstPassTopDocs,
int topN) |
abstract TopDocs |
Rescorer.rescore(IndexSearcher searcher,
TopDocs firstPassTopDocs,
int topN)
Rescore an initial first-pass
TopDocs . |
static TopDocs |
QueryRescorer.rescore(IndexSearcher searcher,
TopDocs topDocs,
Query query,
double weight,
int topN)
Sugar API, calling {#rescore} using a simple linear
combination of firstPassScore + weight * secondPassScore
|
SortField |
SortField.rewrite(IndexSearcher searcher)
Rewrites this SortField, returning a new SortField if a change is made.
|
Sort |
Sort.rewrite(IndexSearcher searcher)
Rewrites the SortFields in this Sort, returning a new Sort if any of the fields
changes during their rewriting.
|
protected boolean |
SearcherManager.tryIncRef(IndexSearcher reference) |
Constructor and Description |
---|
BooleanQuery.BooleanWeight(IndexSearcher searcher,
boolean disableCoord) |
ConstantScoreQuery.ConstantWeight(IndexSearcher searcher) |
DisjunctionMaxQuery.DisjunctionMaxWeight(IndexSearcher searcher)
Construct the Weight for this Query searched by searcher.
|
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.
|
<T> TopGroups<T> |
GroupingSearch.search(IndexSearcher searcher,
Query query,
int groupOffset,
int groupLimit)
Executes a grouped search.
|
Modifier and Type | Method and Description |
---|---|
static Query |
JoinUtil.createJoinQuery(String fromField,
boolean multipleValuesPerDocument,
String toField,
Query fromQuery,
IndexSearcher fromSearcher,
ScoreMode scoreMode)
Method for query time joining.
|
Weight |
ToParentBlockJoinQuery.createWeight(IndexSearcher searcher) |
Weight |
ToChildBlockJoinQuery.createWeight(IndexSearcher searcher) |
Modifier and Type | Method and Description |
---|---|
Weight |
PayloadNearQuery.createWeight(IndexSearcher searcher) |
Weight |
PayloadTermQuery.createWeight(IndexSearcher searcher) |
Constructor and Description |
---|
PayloadNearQuery.PayloadNearSpanWeight(SpanQuery query,
IndexSearcher searcher) |
PayloadTermQuery.PayloadTermWeight(PayloadTermQuery query,
IndexSearcher searcher) |
Modifier and Type | Method and Description |
---|---|
String[] |
PostingsHighlighter.highlight(String field,
Query query,
IndexSearcher searcher,
TopDocs topDocs)
Highlights the top passages from a single field.
|
String[] |
PostingsHighlighter.highlight(String field,
Query query,
IndexSearcher searcher,
TopDocs topDocs,
int maxPassages)
Highlights the top-N passages from a single field.
|
Map<String,String[]> |
PostingsHighlighter.highlightFields(String[] fieldsIn,
Query query,
IndexSearcher searcher,
int[] docidsIn,
int[] maxPassagesIn)
Highlights the top-N passages from multiple fields,
for the provided int[] docids.
|
Map<String,String[]> |
PostingsHighlighter.highlightFields(String[] fields,
Query query,
IndexSearcher searcher,
TopDocs topDocs)
Highlights the top passages from multiple fields.
|
Map<String,String[]> |
PostingsHighlighter.highlightFields(String[] fields,
Query query,
IndexSearcher searcher,
TopDocs topDocs,
int[] maxPassages)
Highlights the top-N passages from multiple fields.
|
protected Map<String,Object[]> |
PostingsHighlighter.highlightFieldsAsObjects(String[] fieldsIn,
Query query,
IndexSearcher searcher,
int[] docidsIn,
int[] maxPassagesIn)
Expert: highlights the top-N passages from multiple fields,
for the provided int[] docids, to custom Object as
returned by the
PassageFormatter . |
protected String[][] |
PostingsHighlighter.loadFieldValues(IndexSearcher searcher,
String[] fields,
int[] docids,
int maxLength)
Loads the String values for each field X docID to be
highlighted.
|
Modifier and Type | Method and Description |
---|---|
Weight |
SpanQuery.createWeight(IndexSearcher searcher) |
Weight |
FieldMaskingSpanQuery.createWeight(IndexSearcher searcher) |
Constructor and Description |
---|
SpanWeight(SpanQuery query,
IndexSearcher searcher) |
Modifier and Type | Method and Description |
---|---|
protected List<Lookup.LookupResult> |
AnalyzingInfixSuggester.createResults(IndexSearcher searcher,
TopFieldDocs hits,
int num,
CharSequence charSequence,
boolean doHighlight,
Set<String> matchedTokens,
String prefixToken)
Create the results based on the search hits.
|
protected List<Lookup.LookupResult> |
BlendedInfixSuggester.createResults(IndexSearcher searcher,
TopFieldDocs hits,
int num,
CharSequence key,
boolean doHighlight,
Set<String> matchedTokens,
String prefixToken) |
Copyright © 2000-2016 The Apache Software Foundation. All Rights Reserved.