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.
|
Modifier and Type | Method and Description |
---|---|
static TermContext |
TermContext.build(IndexReaderContext context,
Term term)
|
Modifier and Type | Method and Description |
---|---|
BlendedTermQuery.Builder |
BlendedTermQuery.Builder.add(Term term,
float boost,
TermContext context)
Expert: Add a
Term 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.TopTermsScoringBooleanQueryRewrite.addClause(BooleanQuery.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) |
TermStatistics |
IndexSearcher.termStatistics(Term term,
TermContext context)
Returns
TermStatistics for a term. |
Constructor and 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.
|
Modifier and Type | Field and Description |
---|---|
protected TermContext |
SpanTermQuery.termContext |
Modifier and Type | Method and Description |
---|---|
static Map<Term,TermContext> |
SpanQuery.getTermContexts(Collection<SpanWeight> weights)
Build a map of terms to termcontexts, for use in constructing SpanWeights
|
static Map<Term,TermContext> |
SpanQuery.getTermContexts(SpanWeight... weights)
Build a map of terms to termcontexts, for use in constructing SpanWeights
|
Modifier and Type | Method and Description |
---|---|
void |
SpanNotQuery.SpanNotWeight.extractTermContexts(Map<Term,TermContext> contexts) |
void |
SpanPositionCheckQuery.SpanPositionCheckWeight.extractTermContexts(Map<Term,TermContext> contexts) |
abstract void |
SpanWeight.extractTermContexts(Map<Term,TermContext> contexts)
Collect all TermContexts used by this Weight
|
void |
SpanOrQuery.SpanOrWeight.extractTermContexts(Map<Term,TermContext> contexts) |
void |
SpanNearQuery.SpanNearWeight.extractTermContexts(Map<Term,TermContext> contexts) |
void |
SpanTermQuery.SpanTermWeight.extractTermContexts(Map<Term,TermContext> contexts) |
Constructor and Description |
---|
SpanTermQuery(Term term,
TermContext context)
Expert: Construct a SpanTermQuery matching the named term's spans, using
the provided TermContext
|
SpanTermWeight(TermContext termContext,
IndexSearcher searcher,
Map<Term,TermContext> terms,
float boost) |
Constructor and 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 SpanWeight
|
SpanWithinWeight(IndexSearcher searcher,
Map<Term,TermContext> terms,
SpanWeight bigWeight,
SpanWeight littleWeight,
float boost) |
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.