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.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.queries.spans The calculus of spans.org.apache.lucene.sandbox.search This package contains a flexible graph-based proximity query, TermAutomatonQuery, and geospatial queries.org.apache.lucene.search Code to search indices. -
-
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(IndexSearcher indexSearcher, Term term, boolean needsStats)
-
Uses of TermStates in org.apache.lucene.queries
Methods in org.apache.lucene.queries with parameters of type TermStates Modifier and Type Method 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. -
Uses of TermStates in org.apache.lucene.queries.payloads
Method parameters in org.apache.lucene.queries.payloads with type arguments of type TermStates Modifier and Type Method Description void
PayloadScoreQuery.PayloadSpanWeight. extractTermStates(java.util.Map<Term,TermStates> contexts)
void
SpanPayloadCheckQuery.SpanPayloadCheckWeight. extractTermStates(java.util.Map<Term,TermStates> contexts)
Constructor parameters in org.apache.lucene.queries.payloads with type arguments of type TermStates Constructor Description SpanPayloadCheckWeight(IndexSearcher searcher, java.util.Map<Term,TermStates> termStates, SpanWeight matchWeight, float boost, SpanPayloadCheckQuery.PayloadType payloadType)
-
Uses of TermStates in org.apache.lucene.queries.spans
Fields in org.apache.lucene.queries.spans declared as TermStates Modifier and Type Field Description (package private) TermStates
SpanTermQuery.SpanTermWeight. termStates
protected TermStates
SpanTermQuery. termStates
Methods in org.apache.lucene.queries.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.queries.spans that return types with arguments of type TermStates Modifier and Type Method Description static java.util.Map<Term,TermStates>
SpanQuery. getTermStates(java.util.Collection<SpanWeight> weights)
Build a map of terms toTermStates
, for use in constructing SpanWeightsstatic java.util.Map<Term,TermStates>
SpanQuery. getTermStates(SpanWeight... weights)
Build a map of terms toTermStates
, for use in constructing SpanWeightsMethod parameters in org.apache.lucene.queries.spans with type arguments of type TermStates Modifier and Type Method Description private Similarity.SimScorer
SpanWeight. buildSimWeight(SpanQuery query, IndexSearcher searcher, java.util.Map<Term,TermStates> termStates, float boost)
void
SpanContainQuery.SpanContainWeight. extractTermStates(java.util.Map<Term,TermStates> contexts)
void
SpanNearQuery.SpanGapQuery.SpanGapWeight. extractTermStates(java.util.Map<Term,TermStates> contexts)
void
SpanNearQuery.SpanNearWeight. extractTermStates(java.util.Map<Term,TermStates> contexts)
void
SpanNotQuery.SpanNotWeight. extractTermStates(java.util.Map<Term,TermStates> contexts)
void
SpanOrQuery.SpanOrWeight. extractTermStates(java.util.Map<Term,TermStates> contexts)
void
SpanPositionCheckQuery.SpanPositionCheckWeight. extractTermStates(java.util.Map<Term,TermStates> contexts)
void
SpanTermQuery.SpanTermWeight. extractTermStates(java.util.Map<Term,TermStates> contexts)
abstract void
SpanWeight. extractTermStates(java.util.Map<Term,TermStates> contexts)
Collect all TermStates used by this WeightConstructors in org.apache.lucene.queries.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, java.util.Map<Term,TermStates> terms, float boost)
Constructor parameters in org.apache.lucene.queries.spans with type arguments of type TermStates Constructor 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 SpanWeightSpanWithinWeight(IndexSearcher searcher, java.util.Map<Term,TermStates> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost)
-
Uses of TermStates in org.apache.lucene.sandbox.search
Fields in org.apache.lucene.sandbox.search declared as TermStates Modifier and Type Field Description private TermStates[]
CombinedFieldQuery.CombinedFieldWeight. termStates
Fields in org.apache.lucene.sandbox.search with type parameters of type TermStates Modifier and Type Field Description private IntObjectHashMap<TermStates>
TermAutomatonQuery.TermAutomatonWeight. termStates
Constructor parameters in org.apache.lucene.sandbox.search with type arguments of type TermStates Constructor Description TermAutomatonWeight(Automaton automaton, IndexSearcher searcher, IntObjectHashMap<TermStates> termStates, float boost)
-
Uses of TermStates in org.apache.lucene.search
Fields in org.apache.lucene.search declared as TermStates Modifier and Type Field Description private TermStates[]
BlendedTermQuery.Builder. contexts
private TermStates[]
BlendedTermQuery. contexts
private TermStates
TermQuery. perReaderTermState
(package private) TermStates[]
ScoringRewrite.TermFreqBoostByteStart. termState
TermStates
TopTermsRewrite.ScoreTerm. termState
private TermStates[]
SynonymQuery.SynonymWeight. termStates
private TermStates
TermQuery.TermWeight. termStates
Methods in org.apache.lucene.search that return TermStates Modifier and Type Method Description private static TermStates
BlendedTermQuery. adjustFrequencies(IndexReaderContext readerContext, TermStates ctx, int artificialDf, long artificialTtf)
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)
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)
Constructors in org.apache.lucene.search with parameters of type TermStates Constructor 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)
-