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.queries.payloads |
The payloads package provides Query mechanisms for finding and using payloads.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.spans |
The calculus of spans.
|
Modifier and Type | Method and Description |
---|---|
static TermStates |
TermStates.build(IndexReaderContext context,
Term term,
boolean needsStats)
|
Modifier and Type | Method and Description |
---|---|
protected Query |
CommonTermsQuery.buildQuery(int maxDoc,
TermStates[] contextArray,
Term[] queryTerms) |
void |
CommonTermsQuery.collectTermStates(IndexReader reader,
java.util.List<LeafReaderContext> leaves,
TermStates[] contextArray,
Term[] queryTerms) |
protected Query |
CommonTermsQuery.newTermQuery(Term term,
TermStates termStates)
Builds a new TermQuery instance.
|
Modifier and Type | Method and Description |
---|---|
void |
PayloadScoreQuery.PayloadSpanWeight.extractTermStates(java.util.Map<Term,TermStates> contexts) |
void |
SpanPayloadCheckQuery.SpanPayloadCheckWeight.extractTermStates(java.util.Map<Term,TermStates> contexts) |
Constructor and Description |
---|
SpanPayloadCheckWeight(IndexSearcher searcher,
java.util.Map<Term,TermStates> termStates,
SpanWeight matchWeight,
float boost) |
Modifier and Type | Field and Description |
---|---|
private TermStates[] |
BlendedTermQuery.contexts |
private TermStates[] |
BlendedTermQuery.Builder.contexts |
private TermStates |
TermQuery.perReaderTermState |
(package private) TermStates[] |
ScoringRewrite.TermFreqBoostByteStart.termState |
TermStates |
TopTermsRewrite.ScoreTerm.termState |
private TermStates[] |
BM25FQuery.BM25FWeight.termStates |
private TermStates[] |
SynonymQuery.SynonymWeight.termStates |
private TermStates |
TermQuery.TermWeight.termStates |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Integer,TermStates> |
TermAutomatonQuery.TermAutomatonWeight.termStates |
Modifier and Type | Method and Description |
---|---|
private static TermStates |
BlendedTermQuery.adjustFrequencies(IndexReaderContext readerContext,
TermStates ctx,
int artificialDf,
long artificialTtf) |
TermStates |
TermQuery.getTermStates()
Returns the
TermStates passed to the constructor, or null if it was not passed. |
Modifier and Type | Method and Description |
---|---|
BlendedTermQuery.Builder |
BlendedTermQuery.Builder.add(Term term,
float boost,
TermStates context)
Expert: Add a
Term with the provided boost and context. |
protected void |
MultiTermQuery.TopTermsBlendedFreqScoringRewrite.addClause(BlendedTermQuery.Builder topLevel,
Term term,
int docCount,
float boost,
TermStates states) |
protected void |
MultiTermQuery.TopTermsScoringBooleanQueryRewrite.addClause(BooleanQuery.Builder topLevel,
Term term,
int docCount,
float boost,
TermStates states) |
protected void |
MultiTermQuery.TopTermsBoostOnlyBooleanQueryRewrite.addClause(BooleanQuery.Builder topLevel,
Term term,
int docFreq,
float boost,
TermStates states) |
protected abstract void |
TermCollectingRewrite.addClause(B topLevel,
Term term,
int docCount,
float boost,
TermStates states) |
private static TermStates |
BlendedTermQuery.adjustFrequencies(IndexReaderContext readerContext,
TermStates ctx,
int artificialDf,
long artificialTtf) |
TermStatistics |
IndexSearcher.termStatistics(Term term,
TermStates context)
Returns
TermStatistics for a term, or null if
the term does not exist. |
Constructor and Description |
---|
BlendedTermQuery(Term[] terms,
float[] boosts,
TermStates[] contexts,
BlendedTermQuery.RewriteMethod rewriteMethod) |
ScoreTerm(TermStates termState) |
TermQuery(Term t,
TermStates states)
Expert: constructs a TermQuery that will use the provided docFreq instead
of looking up the docFreq against the searcher.
|
TermWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost,
TermStates termStates) |
Constructor and Description |
---|
TermAutomatonWeight(Automaton automaton,
IndexSearcher searcher,
java.util.Map<java.lang.Integer,TermStates> termStates,
float boost) |
Modifier and Type | Field and Description |
---|---|
protected TermStates |
SpanTermQuery.termStates |
(package private) TermStates |
SpanTermQuery.SpanTermWeight.termStates |
Modifier and Type | Method and Description |
---|---|
TermStates |
SpanTermQuery.getTermStates()
Returns the
TermStates passed to the constructor, or null if it was not passed. |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<Term,TermStates> |
SpanQuery.getTermStates(java.util.Collection<SpanWeight> weights)
Build a map of terms to
TermStates , for use in constructing SpanWeights |
static java.util.Map<Term,TermStates> |
SpanQuery.getTermStates(SpanWeight... weights)
Build a map of terms to
TermStates , for use in constructing SpanWeights |
Modifier and Type | Method and Description |
---|---|
private Similarity.SimScorer |
SpanWeight.buildSimWeight(SpanQuery query,
IndexSearcher searcher,
java.util.Map<Term,TermStates> termStates,
float boost) |
void |
SpanTermQuery.SpanTermWeight.extractTermStates(java.util.Map<Term,TermStates> contexts) |
void |
SpanNearQuery.SpanNearWeight.extractTermStates(java.util.Map<Term,TermStates> contexts) |
void |
SpanNearQuery.SpanGapQuery.SpanGapWeight.extractTermStates(java.util.Map<Term,TermStates> contexts) |
void |
SpanNotQuery.SpanNotWeight.extractTermStates(java.util.Map<Term,TermStates> contexts) |
void |
SpanContainQuery.SpanContainWeight.extractTermStates(java.util.Map<Term,TermStates> contexts) |
void |
SpanPositionCheckQuery.SpanPositionCheckWeight.extractTermStates(java.util.Map<Term,TermStates> contexts) |
void |
SpanOrQuery.SpanOrWeight.extractTermStates(java.util.Map<Term,TermStates> contexts) |
abstract void |
SpanWeight.extractTermStates(java.util.Map<Term,TermStates> contexts)
Collect all TermStates used by this Weight
|
Constructor and Description |
---|
SpanTermQuery(Term term,
TermStates termStates)
Expert: Construct a SpanTermQuery matching the named term's spans, using
the provided TermStates
|
SpanTermWeight(TermStates termStates,
IndexSearcher searcher,
java.util.Map<Term,TermStates> terms,
float boost) |
Constructor and Description |
---|
SpanContainingWeight(IndexSearcher searcher,
java.util.Map<Term,TermStates> terms,
SpanWeight bigWeight,
SpanWeight littleWeight,
float boost) |
SpanContainWeight(IndexSearcher searcher,
java.util.Map<Term,TermStates> terms,
SpanWeight bigWeight,
SpanWeight littleWeight,
float boost) |
SpanNearWeight(java.util.List<SpanWeight> subWeights,
IndexSearcher searcher,
java.util.Map<Term,TermStates> terms,
float boost) |
SpanNotWeight(IndexSearcher searcher,
java.util.Map<Term,TermStates> terms,
SpanWeight includeWeight,
SpanWeight excludeWeight,
float boost) |
SpanOrWeight(IndexSearcher searcher,
java.util.Map<Term,TermStates> terms,
java.util.List<SpanWeight> subWeights,
float boost) |
SpanPositionCheckWeight(SpanWeight matchWeight,
IndexSearcher searcher,
java.util.Map<Term,TermStates> terms,
float boost) |
SpanTermWeight(TermStates termStates,
IndexSearcher searcher,
java.util.Map<Term,TermStates> terms,
float boost) |
SpanWeight(SpanQuery query,
IndexSearcher searcher,
java.util.Map<Term,TermStates> termStates,
float boost)
Create a new SpanWeight
|
SpanWithinWeight(IndexSearcher searcher,
java.util.Map<Term,TermStates> terms,
SpanWeight bigWeight,
SpanWeight littleWeight,
float boost) |