Uses of Class
org.apache.lucene.index.TermContext
-
Packages that use TermContext 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 TermContext in org.apache.lucene.index
Methods in org.apache.lucene.index that return TermContext Modifier and Type Method Description static TermContext
TermContext. build(IndexReaderContext context, Term term)
-
Uses of TermContext in org.apache.lucene.search
Methods in org.apache.lucene.search that return TermContext Modifier and Type Method Description TermContext
TermQuery. getTermContext()
Returns theTermContext
passed to the constructor, or null if it was not passed.Methods in org.apache.lucene.search with parameters of type TermContext Modifier and Type Method Description BlendedTermQuery.Builder
BlendedTermQuery.Builder. add(Term term, float boost, TermContext context)
Expert: Add aTerm
with the provided boost and context.protected void
MultiTermQuery.TopTermsBlendedFreqScoringRewrite. addClause(BlendedTermQuery.Builder topLevel, Term term, int docCount, float boost, TermContext states)
protected void
MultiTermQuery.TopTermsBoostOnlyBooleanQueryRewrite. addClause(BooleanQuery.Builder topLevel, Term term, int docFreq, float boost, TermContext states)
protected void
MultiTermQuery.TopTermsScoringBooleanQueryRewrite. addClause(BooleanQuery.Builder topLevel, Term term, int docCount, float boost, TermContext states)
TermStatistics
IndexSearcher. termStatistics(Term term, TermContext context)
ReturnsTermStatistics
for a term.Constructors in org.apache.lucene.search with parameters of type TermContext Constructor Description TermQuery(Term t, TermContext states)
Expert: constructs a TermQuery that will use the provided docFreq instead of looking up the docFreq against the searcher. -
Uses of TermContext in org.apache.lucene.search.spans
Fields in org.apache.lucene.search.spans declared as TermContext Modifier and Type Field Description protected TermContext
SpanTermQuery. termContext
Methods in org.apache.lucene.search.spans that return TermContext Modifier and Type Method Description TermContext
SpanTermQuery. getTermContext()
Returns theTermContext
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 TermContext Modifier and Type Method Description static Map<Term,TermContext>
SpanQuery. getTermContexts(Collection<SpanWeight> weights)
Build a map of terms to termcontexts, for use in constructing SpanWeightsstatic Map<Term,TermContext>
SpanQuery. getTermContexts(SpanWeight... weights)
Build a map of terms to termcontexts, for use in constructing SpanWeightsMethod parameters in org.apache.lucene.search.spans with type arguments of type TermContext Modifier and Type Method Description void
SpanNearQuery.SpanNearWeight. extractTermContexts(Map<Term,TermContext> contexts)
void
SpanNotQuery.SpanNotWeight. extractTermContexts(Map<Term,TermContext> contexts)
void
SpanOrQuery.SpanOrWeight. extractTermContexts(Map<Term,TermContext> contexts)
void
SpanPositionCheckQuery.SpanPositionCheckWeight. extractTermContexts(Map<Term,TermContext> contexts)
void
SpanTermQuery.SpanTermWeight. extractTermContexts(Map<Term,TermContext> contexts)
abstract void
SpanWeight. extractTermContexts(Map<Term,TermContext> contexts)
Collect all TermContexts used by this WeightConstructors in org.apache.lucene.search.spans with parameters of type TermContext Constructor Description SpanTermQuery(Term term, TermContext context)
Expert: Construct a SpanTermQuery matching the named term's spans, using the provided TermContextSpanTermWeight(TermContext termContext, IndexSearcher searcher, Map<Term,TermContext> terms, float boost)
Constructor parameters in org.apache.lucene.search.spans with type arguments of type TermContext Constructor Description SpanContainingWeight(IndexSearcher searcher, Map<Term,TermContext> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost)
SpanNearWeight(List<SpanWeight> subWeights, IndexSearcher searcher, Map<Term,TermContext> terms, float boost)
SpanNotWeight(IndexSearcher searcher, Map<Term,TermContext> terms, SpanWeight includeWeight, SpanWeight excludeWeight, float boost)
SpanOrWeight(IndexSearcher searcher, Map<Term,TermContext> terms, List<SpanWeight> subWeights, float boost)
SpanPositionCheckWeight(SpanWeight matchWeight, IndexSearcher searcher, Map<Term,TermContext> terms, float boost)
SpanTermWeight(TermContext termContext, IndexSearcher searcher, Map<Term,TermContext> terms, float boost)
SpanWeight(SpanQuery query, IndexSearcher searcher, Map<Term,TermContext> termContexts, float boost)
Create a new SpanWeightSpanWithinWeight(IndexSearcher searcher, Map<Term,TermContext> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost)
-