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.PostingsNested classes/interfaces inherited from class org.apache.lucene.search.Weight
Weight.DefaultBulkScorer -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final SpanWeight(package private) final SpanWeightFields inherited from class org.apache.lucene.queries.spans.SpanWeight
field, similarity, simScorerFields 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 TypeMethodDescriptionvoidextractTermStates(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, scorerMethods inherited from class org.apache.lucene.search.Weight
bulkScorer, count, getQuery, scorerSupplierMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:SpanWeightCollect all TermStates used by this Weight- Specified by:
extractTermStatesin classSpanWeight- Parameters:
contexts- a map to add the TermStates to
-