Module org.apache.lucene.queries
Package org.apache.lucene.queries.spans
Class SpanContainQuery.SpanContainWeight
java.lang.Object
org.apache.lucene.search.Weight
org.apache.lucene.queries.spans.SpanWeight
org.apache.lucene.queries.spans.SpanContainQuery.SpanContainWeight
- All Implemented Interfaces:
SegmentCacheable
- Direct Known Subclasses:
SpanContainingQuery.SpanContainingWeight
,SpanWithinQuery.SpanWithinWeight
- Enclosing class:
- SpanContainQuery
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.queries.spans.SpanWeight
SpanWeight.Postings
Nested classes/interfaces inherited from class org.apache.lucene.search.Weight
Weight.DefaultBulkScorer
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final SpanWeight
(package private) final SpanWeight
Fields inherited from class org.apache.lucene.queries.spans.SpanWeight
field, similarity, simScorer
Fields inherited from class org.apache.lucene.search.Weight
parentQuery
-
Constructor Summary
ConstructorsConstructorDescriptionSpanContainWeight
(IndexSearcher searcher, Map<Term, TermStates> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost) -
Method Summary
Modifier and TypeMethodDescriptionvoid
extractTermStates
(Map<Term, TermStates> contexts) Collect all TermStates used by this WeightprepareConjunction
(LeafReaderContext context, SpanWeight.Postings postings) Methods inherited from class org.apache.lucene.queries.spans.SpanWeight
explain, getSimScorer, getSpans, matches, scorer
Methods inherited from class org.apache.lucene.search.Weight
bulkScorer, count, 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 Details
-
bigWeight
-
littleWeight
-
-
Constructor Details
-
SpanContainWeight
public SpanContainWeight(IndexSearcher searcher, Map<Term, TermStates> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost) throws IOException- Throws:
IOException
-
-
Method Details
-
prepareConjunction
ArrayList<Spans> prepareConjunction(LeafReaderContext context, SpanWeight.Postings postings) throws IOException - Throws:
IOException
-
extractTermStates
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
-