Package org.apache.lucene.search.spans
Class SpanContainQuery.SpanContainWeight
- java.lang.Object
-
- org.apache.lucene.search.Weight
-
- org.apache.lucene.search.spans.SpanWeight
-
- org.apache.lucene.search.spans.SpanContainQuery.SpanContainWeight
-
- All Implemented Interfaces:
SegmentCacheable
- Direct Known Subclasses:
SpanContainingQuery.SpanContainingWeight
,SpanWithinQuery.SpanWithinWeight
- Enclosing class:
- SpanContainQuery
public abstract class SpanContainQuery.SpanContainWeight extends SpanWeight
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.search.spans.SpanWeight
SpanWeight.Postings
-
Nested classes/interfaces inherited from class org.apache.lucene.search.Weight
Weight.DefaultBulkScorer
-
-
Field Summary
Fields Modifier and Type Field Description (package private) SpanWeight
bigWeight
(package private) SpanWeight
littleWeight
-
Fields inherited from class org.apache.lucene.search.spans.SpanWeight
field, similarity, simScorer
-
Fields inherited from class org.apache.lucene.search.Weight
parentQuery
-
-
Constructor Summary
Constructors Constructor Description SpanContainWeight(IndexSearcher searcher, java.util.Map<Term,TermStates> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
extractTerms(java.util.Set<Term> terms)
Extract terms from bothbig
andlittle
.void
extractTermStates(java.util.Map<Term,TermStates> contexts)
Collect all TermStates used by this Weight(package private) java.util.ArrayList<Spans>
prepareConjunction(LeafReaderContext context, SpanWeight.Postings postings)
-
Methods inherited from class org.apache.lucene.search.spans.SpanWeight
explain, getSimScorer, getSpans, matches, scorer
-
Methods inherited from class org.apache.lucene.search.Weight
bulkScorer, getQuery, scorerSupplier
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.lucene.search.SegmentCacheable
isCacheable
-
-
-
-
Field Detail
-
bigWeight
final SpanWeight bigWeight
-
littleWeight
final SpanWeight littleWeight
-
-
Constructor Detail
-
SpanContainWeight
public SpanContainWeight(IndexSearcher searcher, java.util.Map<Term,TermStates> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
extractTerms
public void extractTerms(java.util.Set<Term> terms)
Extract terms from bothbig
andlittle
.- Specified by:
extractTerms
in classWeight
-
prepareConjunction
java.util.ArrayList<Spans> prepareConjunction(LeafReaderContext context, SpanWeight.Postings postings) throws java.io.IOException
- Throws:
java.io.IOException
-
extractTermStates
public void extractTermStates(java.util.Map<Term,TermStates> contexts)
Description copied from class:SpanWeight
Collect all TermStates used by this Weight- Specified by:
extractTermStates
in classSpanWeight
- Parameters:
contexts
- a map to add the TermStates to
-
-