Uses of Class
org.apache.lucene.index.TermStates
-
Packages that use TermStates Package Description org.apache.lucene.index org.apache.lucene.queries org.apache.lucene.search org.apache.lucene.search.spans -
-
Uses of TermStates in org.apache.lucene.index
Methods in org.apache.lucene.index that return TermStates Modifier and Type Method Description static TermStatesTermStates. 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 TermStates Modifier and Type Method Description protected voidBlendedTermQuery. blend(TermStates[] contexts, int maxDoc, IndexReader reader)protected 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.protected abstract QueryBlendedTermQuery. topLevelQuery(Term[] terms, TermStates[] ctx, int[] docFreqs, int maxDoc) -
Uses of TermStates in org.apache.lucene.search
Methods in org.apache.lucene.search that return TermStates Modifier and Type Method Description TermStatesTermQuery. getTermStates()Returns theTermStatespassed 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.BuilderBlendedTermQuery.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)TermStatisticsIndexSearcher. 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 TermStatesSpanTermQuery. termStatesMethods in org.apache.lucene.search.spans that return TermStates Modifier and Type Method Description TermStatesSpanTermQuery. getTermStates()Returns theTermStatespassed 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 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.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)
-