public final class SpanWithinQuery extends SpanContainQuery
Modifier and Type | Class and Description |
---|---|
class |
SpanWithinQuery.SpanWithinWeight |
SpanContainQuery.SpanContainWeight
big, little
Constructor and Description |
---|
SpanWithinQuery(SpanQuery big,
SpanQuery little)
Construct a SpanWithinQuery matching spans from
little
that are inside of big . |
Modifier and Type | Method and Description |
---|---|
SpanWeight |
createWeight(IndexSearcher searcher,
boolean needsScores)
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) 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.java.io.IOException