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 TermStatesTermStates.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 TermStatesModifier and TypeMethodDescriptionprotected QueryCommonTermsQuery.buildQuery(int maxDoc, TermStates[] contextArray, Term[] queryTerms) voidCommonTermsQuery.collectTermStates(IndexReader reader, List<LeafReaderContext> leaves, TermStates[] contextArray, Term[] queryTerms) protected QueryCommonTermsQuery.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 TypeMethodDescriptionvoidPayloadScoreQuery.PayloadSpanWeight.extractTermStates(Map<Term, TermStates> contexts) voidSpanPayloadCheckQuery.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 TermStatesSpanTermQuery.SpanTermWeight.termStatesprotected final TermStatesSpanTermQuery.termStatesMethods in org.apache.lucene.queries.spans that return TermStatesModifier and TypeMethodDescriptionSpanTermQuery.getTermStates()Returns theTermStatespassed 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.SimScorerSpanWeight.buildSimWeight(SpanQuery query, IndexSearcher searcher, Map<Term, TermStates> termStates, float boost) voidSpanContainQuery.SpanContainWeight.extractTermStates(Map<Term, TermStates> contexts) voidSpanNearQuery.SpanGapQuery.SpanGapWeight.extractTermStates(Map<Term, TermStates> contexts) voidSpanNearQuery.SpanNearWeight.extractTermStates(Map<Term, TermStates> contexts) voidSpanNotQuery.SpanNotWeight.extractTermStates(Map<Term, TermStates> contexts) voidSpanOrQuery.SpanOrWeight.extractTermStates(Map<Term, TermStates> contexts) voidSpanPositionCheckQuery.SpanPositionCheckWeight.extractTermStates(Map<Term, TermStates> contexts) voidSpanTermQuery.SpanTermWeight.extractTermStates(Map<Term, TermStates> contexts) abstract voidSpanWeight.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.termStatesFields in org.apache.lucene.sandbox.search with type parameters of type TermStatesModifier and TypeFieldDescriptionprivate final IntObjectHashMap<TermStates> TermAutomatonQuery.TermAutomatonWeight.termStatesConstructor parameters in org.apache.lucene.sandbox.search with type arguments of type TermStatesModifierConstructorDescriptionTermAutomatonWeight(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 TermStatesModifier and TypeFieldDescriptionprivate TermStates[]BlendedTermQuery.Builder.contextsprivate final TermStates[]BlendedTermQuery.contextsprivate final TermStatesTermQuery.perReaderTermState(package private) TermStates[]ScoringRewrite.TermFreqBoostByteStart.termStatefinal TermStatesTopTermsRewrite.ScoreTerm.termStateprivate final TermStates[]SynonymQuery.SynonymWeight.termStatesprivate final TermStatesTermQuery.TermWeight.termStatesMethods in org.apache.lucene.search that return TermStatesModifier and TypeMethodDescriptionprivate static TermStatesBlendedTermQuery.adjustFrequencies(IndexReaderContext readerContext, TermStates ctx, int artificialDf, long artificialTtf) TermQuery.getTermStates()Returns theTermStatespassed 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 aTermwith the provided boost and context.protected voidMultiTermQuery.TopTermsBlendedFreqScoringRewrite.addClause(BlendedTermQuery.Builder topLevel, Term term, int docCount, float boost, TermStates states) protected voidMultiTermQuery.TopTermsBoostOnlyBooleanQueryRewrite.addClause(BooleanQuery.Builder topLevel, Term term, int docFreq, float boost, TermStates states) protected voidMultiTermQuery.TopTermsScoringBooleanQueryRewrite.addClause(BooleanQuery.Builder topLevel, Term term, int docCount, float boost, TermStates states) protected abstract voidTermCollectingRewrite.addClause(B topLevel, Term term, int docCount, float boost, TermStates states) private static TermStatesBlendedTermQuery.adjustFrequencies(IndexReaderContext readerContext, TermStates ctx, int artificialDf, long artificialTtf) Constructors in org.apache.lucene.search with parameters of type TermStatesModifierConstructorDescriptionprivateBlendedTermQuery(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)