Package | Description |
---|---|
org.apache.lucene.index |
Code to maintain and access indices.
|
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 |
---|---|
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) |
TermStatistics |
IndexSearcher.termStatistics(Term term,
TermStates context)
Deprecated.
in favor of
IndexSearcher.termStatistics(Term, int, long) . |
Constructor and Description |
---|
TermQuery(Term t,
TermStates states)
Expert: constructs a TermQuery that will use the provided docFreq instead
of looking up the docFreq against the searcher.
|
Modifier and Type | Field and Description |
---|---|
protected TermStates |
SpanTermQuery.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 Map<Term,TermStates> |
SpanQuery.getTermStates(Collection<SpanWeight> weights)
Build a map of terms to
TermStates , for use in constructing SpanWeights |
static 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 |
---|---|
void |
SpanOrQuery.SpanOrWeight.extractTermStates(Map<Term,TermStates> contexts) |
void |
SpanNearQuery.SpanNearWeight.extractTermStates(Map<Term,TermStates> contexts) |
void |
SpanPositionCheckQuery.SpanPositionCheckWeight.extractTermStates(Map<Term,TermStates> contexts) |
abstract void |
SpanWeight.extractTermStates(Map<Term,TermStates> contexts)
Collect all TermStates used by this Weight
|
void |
SpanTermQuery.SpanTermWeight.extractTermStates(Map<Term,TermStates> contexts) |
void |
SpanNotQuery.SpanNotWeight.extractTermStates(Map<Term,TermStates> contexts) |
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,
Map<Term,TermStates> terms,
float boost) |
Constructor and Description |
---|
SpanContainingWeight(IndexSearcher searcher,
Map<Term,TermStates> terms,
SpanWeight bigWeight,
SpanWeight littleWeight,
float boost) |
SpanNearWeight(List<SpanWeight> subWeights,
IndexSearcher searcher,
Map<Term,TermStates> terms,
float boost) |
SpanNotWeight(IndexSearcher searcher,
Map<Term,TermStates> terms,
SpanWeight includeWeight,
SpanWeight excludeWeight,
float boost) |
SpanOrWeight(IndexSearcher searcher,
Map<Term,TermStates> terms,
List<SpanWeight> subWeights,
float boost) |
SpanPositionCheckWeight(SpanWeight matchWeight,
IndexSearcher searcher,
Map<Term,TermStates> terms,
float boost) |
SpanTermWeight(TermStates termStates,
IndexSearcher searcher,
Map<Term,TermStates> terms,
float boost) |
SpanWeight(SpanQuery query,
IndexSearcher searcher,
Map<Term,TermStates> termStates,
float boost)
Create a new SpanWeight
|
SpanWithinWeight(IndexSearcher searcher,
Map<Term,TermStates> terms,
SpanWeight bigWeight,
SpanWeight littleWeight,
float boost) |
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.