Uses of Class
org.apache.lucene.index.TermStates
Packages that use TermStates
Package
Description
Code to maintain and access indices.
Filters and Queries that add to core Lucene.
The payloads package provides Query mechanisms for finding and using payloads.
The calculus of spans.
This package contains a flexible graph-based proximity query, TermAutomatonQuery, and geospatial
queries.
Code to search indices.
-
Uses of TermStates in org.apache.lucene.index
Methods in org.apache.lucene.index that return TermStatesModifier and TypeMethodDescriptionstatic TermStates
TermStates.build
(IndexReaderContext context, Term term, boolean needsStats) -
Uses of TermStates in org.apache.lucene.queries
Methods in org.apache.lucene.queries with parameters of type TermStatesModifier and TypeMethodDescriptionprotected Query
CommonTermsQuery.buildQuery
(int maxDoc, TermStates[] contextArray, Term[] queryTerms) void
CommonTermsQuery.collectTermStates
(IndexReader reader, 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 TermStatesModifier and TypeMethodDescriptionvoid
PayloadScoreQuery.PayloadSpanWeight.extractTermStates
(Map<Term, TermStates> contexts) void
SpanPayloadCheckQuery.SpanPayloadCheckWeight.extractTermStates
(Map<Term, TermStates> contexts) Constructor parameters in org.apache.lucene.queries.payloads with type arguments of type TermStatesModifierConstructorDescriptionSpanPayloadCheckWeight
(IndexSearcher searcher, 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 TermStatesModifier and TypeFieldDescription(package private) final TermStates
SpanTermQuery.SpanTermWeight.termStates
protected final TermStates
SpanTermQuery.termStates
Methods in org.apache.lucene.queries.spans that return TermStatesModifier and TypeMethodDescriptionSpanTermQuery.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 TermStatesModifier and TypeMethodDescriptionstatic 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.queries.spans with type arguments of type TermStatesModifier and TypeMethodDescriptionprivate Similarity.SimScorer
SpanWeight.buildSimWeight
(SpanQuery query, IndexSearcher searcher, Map<Term, TermStates> termStates, float boost) void
SpanContainQuery.SpanContainWeight.extractTermStates
(Map<Term, TermStates> contexts) void
SpanNearQuery.SpanGapQuery.SpanGapWeight.extractTermStates
(Map<Term, TermStates> contexts) 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.queries.spans with parameters of type TermStatesModifierConstructorDescriptionSpanTermQuery
(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.queries.spans with type arguments of type TermStatesModifierConstructorDescriptionSpanContainingWeight
(IndexSearcher searcher, Map<Term, TermStates> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost) SpanContainWeight
(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) -
Uses of TermStates in org.apache.lucene.sandbox.search
Fields in org.apache.lucene.sandbox.search declared as TermStatesModifier and TypeFieldDescriptionprivate final TermStates[]
CombinedFieldQuery.CombinedFieldWeight.termStates
Fields in org.apache.lucene.sandbox.search with type parameters of type TermStatesModifier and TypeFieldDescriptionprivate final Map<Integer,
TermStates> TermAutomatonQuery.TermAutomatonWeight.termStates
Constructor parameters in org.apache.lucene.sandbox.search with type arguments of type TermStatesModifierConstructorDescriptionTermAutomatonWeight
(Automaton automaton, IndexSearcher searcher, Map<Integer, TermStates> termStates, float boost) -
Uses of TermStates in org.apache.lucene.search
Fields in org.apache.lucene.search declared as TermStatesModifier and TypeFieldDescriptionprivate TermStates[]
BlendedTermQuery.Builder.contexts
private final TermStates[]
BlendedTermQuery.contexts
private final TermStates
TermQuery.perReaderTermState
(package private) TermStates[]
ScoringRewrite.TermFreqBoostByteStart.termState
final TermStates
TopTermsRewrite.ScoreTerm.termState
private final TermStates[]
SynonymQuery.SynonymWeight.termStates
private final TermStates
TermQuery.TermWeight.termStates
Methods in org.apache.lucene.search that return TermStatesModifier and TypeMethodDescriptionprivate static TermStates
BlendedTermQuery.adjustFrequencies
(IndexReaderContext readerContext, TermStates ctx, int artificialDf, long artificialTtf) 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 TermStatesModifier and TypeMethodDescriptionBlendedTermQuery.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 TermStatesModifierConstructorDescriptionprivate
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)