public class MtasSpanEndQuery.SpanTermWeight extends MtasSpanWeight
Modifier and Type | Field and Description |
---|---|
(package private) org.apache.lucene.search.spans.SpanWeight |
spanWeight
The span weight.
|
Constructor and Description |
---|
SpanTermWeight(org.apache.lucene.search.spans.SpanWeight spanWeight,
org.apache.lucene.search.IndexSearcher searcher,
float boost)
Instantiates a new span term weight.
|
Modifier and Type | Method and Description |
---|---|
void |
extractTermContexts(Map<org.apache.lucene.index.Term,org.apache.lucene.index.TermContext> contexts) |
void |
extractTerms(Set<org.apache.lucene.index.Term> terms) |
MtasSpans |
getSpans(org.apache.lucene.index.LeafReaderContext context,
org.apache.lucene.search.spans.SpanWeight.Postings requiredPostings) |
isCacheable
public SpanTermWeight(org.apache.lucene.search.spans.SpanWeight spanWeight, org.apache.lucene.search.IndexSearcher searcher, float boost) throws IOException
spanWeight
- the span weightsearcher
- the searcherIOException
- Signals that an I/O exception has occurred.public void extractTermContexts(Map<org.apache.lucene.index.Term,org.apache.lucene.index.TermContext> contexts)
extractTermContexts
in class org.apache.lucene.search.spans.SpanWeight
public MtasSpans getSpans(org.apache.lucene.index.LeafReaderContext context, org.apache.lucene.search.spans.SpanWeight.Postings requiredPostings) throws IOException
getSpans
in class org.apache.lucene.search.spans.SpanWeight
IOException
public void extractTerms(Set<org.apache.lucene.index.Term> terms)
extractTerms
in class org.apache.lucene.search.Weight
Copyright © 2018 Meertens Institute. All rights reserved.