public final class SpanContainingQuery extends SpanContainQuery
Modifier and Type | Class and Description |
---|---|
class |
SpanContainingQuery.SpanContainingWeight |
SpanContainQuery.SpanContainWeight
big, little
Constructor and Description |
---|
SpanContainingQuery(SpanQuery big,
SpanQuery little)
Construct a SpanContainingQuery matching spans from
big
that contain at least one spans from little . |
Modifier and Type | Method and Description |
---|---|
SpanWeight |
createWeight(IndexSearcher searcher,
boolean needsScores,
float boost)
Expert: Constructs an appropriate Weight implementation for this query.
|
java.lang.String |
toString(java.lang.String field)
Prints a query to a string, with
field assumed to be the
default field and omitted. |
equals, getBig, getField, getLittle, hashCode, rewrite, toString
getTermContexts, getTermContexts
classHash, sameClassAs, toString
public java.lang.String toString(java.lang.String field)
Query
field
assumed to be the
default field and omitted.public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws java.io.IOException
Query
Only implemented by primitive queries, which re-write to themselves.
createWeight
in class SpanQuery
needsScores
- True if document scores (Scorer.score()
) or match
frequencies (Scorer.freq()
) are needed.boost
- The boost that is propagated by the parent queries.java.io.IOException