public class SpanNearQuery.SpanNearWeight extends SpanWeight
SpanWeight.PostingsWeight.DefaultBulkScorerfield, similarity, simWeightparentQuery| Constructor and Description | 
|---|
| SpanNearWeight(List<SpanWeight> subWeights,
              IndexSearcher searcher,
              Map<Term,TermContext> terms) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | extractTermContexts(Map<Term,TermContext> contexts)Collect all TermContexts used by this Weight | 
| void | extractTerms(Set<Term> terms)Expert: adds all terms occurring in this query to the terms set. | 
| Spans | getSpans(LeafReaderContext context,
        SpanWeight.Postings requiredPostings)Expert: Return a Spans object iterating over matches from this Weight | 
explain, getSimScorer, getValueForNormalization, normalize, scorerbulkScorer, getQuerypublic SpanNearWeight(List<SpanWeight> subWeights, IndexSearcher searcher, Map<Term,TermContext> terms) throws IOException
IOExceptionpublic void extractTermContexts(Map<Term,TermContext> contexts)
SpanWeightextractTermContexts in class SpanWeightcontexts - a map to add the TermContexts topublic Spans getSpans(LeafReaderContext context, SpanWeight.Postings requiredPostings) throws IOException
SpanWeightgetSpans in class SpanWeightcontext - a LeafReaderContext for this SpansIOException - on errorpublic void extractTerms(Set<Term> terms)
WeightWeight was created with needsScores == true then this
 method will only extract terms which are used for scoring, otherwise it
 will extract all terms which are used for matching.extractTerms in class WeightCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.