Uses of Class
org.apache.lucene.index.TermStates
-
Packages that use TermStates 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. -
-
Uses of TermStates in org.apache.lucene.index
Methods in org.apache.lucene.index that return TermStates Modifier and Type Method Description static TermStates
TermStates. build(IndexReaderContext context, Term term, boolean needsStats)
-
Uses of TermStates in org.apache.lucene.search
Methods in org.apache.lucene.search that return TermStates Modifier and Type Method Description TermStates
TermQuery. getTermStates()
Returns theTermStates
passed to the constructor, or null if it was not passed.Methods in org.apache.lucene.search with parameters of type TermStates Modifier and Type Method Description BlendedTermQuery.Builder
BlendedTermQuery.Builder. add(Term term, float boost, TermStates context)
Expert: Add aTerm
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.TopTermsBoostOnlyBooleanQueryRewrite. addClause(BooleanQuery.Builder topLevel, Term term, int docFreq, float boost, TermStates states)
protected void
MultiTermQuery.TopTermsScoringBooleanQueryRewrite. addClause(BooleanQuery.Builder topLevel, Term term, int docCount, float boost, TermStates states)
TermStatistics
IndexSearcher. termStatistics(Term term, TermStates context)
Deprecated.in favor ofIndexSearcher.termStatistics(Term, int, long)
.Constructors in org.apache.lucene.search with parameters of type TermStates Constructor 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. -
Uses of TermStates in org.apache.lucene.search.spans
Fields in org.apache.lucene.search.spans declared as TermStates Modifier and Type Field Description protected TermStates
SpanTermQuery. termStates
Methods in org.apache.lucene.search.spans that return TermStates Modifier and Type Method Description TermStates
SpanTermQuery. getTermStates()
Returns theTermStates
passed to the constructor, or null if it was not passed.Methods in org.apache.lucene.search.spans that return types with arguments of type TermStates Modifier and Type Method Description static Map<Term,TermStates>
SpanQuery. getTermStates(Collection<SpanWeight> weights)
Build a map of terms toTermStates
, for use in constructing SpanWeightsstatic Map<Term,TermStates>
SpanQuery. getTermStates(SpanWeight... weights)
Build a map of terms toTermStates
, for use in constructing SpanWeightsMethod parameters in org.apache.lucene.search.spans with type arguments of type TermStates Modifier and Type Method Description void
SpanNearQuery.SpanNearWeight. extractTermStates(Map<Term,TermStates> contexts)
void
SpanNotQuery.SpanNotWeight. extractTermStates(Map<Term,TermStates> contexts)
void
SpanOrQuery.SpanOrWeight. extractTermStates(Map<Term,TermStates> contexts)
void
SpanPositionCheckQuery.SpanPositionCheckWeight. extractTermStates(Map<Term,TermStates> contexts)
void
SpanTermQuery.SpanTermWeight. extractTermStates(Map<Term,TermStates> contexts)
abstract void
SpanWeight. extractTermStates(Map<Term,TermStates> contexts)
Collect all TermStates used by this WeightConstructors in org.apache.lucene.search.spans with parameters of type TermStates Constructor Description SpanTermQuery(Term term, TermStates termStates)
Expert: Construct a SpanTermQuery matching the named term's spans, using the provided TermStatesSpanTermWeight(TermStates termStates, IndexSearcher searcher, Map<Term,TermStates> terms, float boost)
Constructor parameters in org.apache.lucene.search.spans with type arguments of type TermStates Constructor 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 SpanWeightSpanWithinWeight(IndexSearcher searcher, Map<Term,TermStates> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost)
-