Package org.apache.lucene.search.spans
Class SpanContainingQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.lucene.search.spans.SpanQuery
-
- org.apache.lucene.search.spans.SpanContainQuery
-
- org.apache.lucene.search.spans.SpanContainingQuery
-
- All Implemented Interfaces:
java.lang.Cloneable
public final class SpanContainingQuery extends SpanContainQuery
Keep matches that contain another SpanScorer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SpanContainingQuery.SpanContainingWeight
-
Nested classes/interfaces inherited from class org.apache.lucene.search.spans.SpanContainQuery
SpanContainQuery.SpanContainWeight
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.search.spans.SpanContainQuery
big, little
-
-
Constructor Summary
Constructors Constructor Description SpanContainingQuery(SpanQuery big, SpanQuery little)
Construct a SpanContainingQuery matching spans frombig
that contain at least one spans fromlittle
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpanWeight
createWeight(IndexSearcher searcher, ScoreMode scoreMode, 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, withfield
assumed to be the default field and omitted.-
Methods inherited from class org.apache.lucene.search.spans.SpanContainQuery
equals, getBig, getField, getLittle, hashCode, rewrite, toString, visit
-
Methods inherited from class org.apache.lucene.search.spans.SpanQuery
getTermStates, getTermStates
-
Methods inherited from class org.apache.lucene.search.Query
classHash, sameClassAs, toString
-
-
-
-
Method Detail
-
toString
public java.lang.String toString(java.lang.String field)
Description copied from class:Query
Prints a query to a string, withfield
assumed to be the default field and omitted.
-
createWeight
public SpanWeight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws java.io.IOException
Description copied from class:Query
Expert: Constructs an appropriate Weight implementation for this query.Only implemented by primitive queries, which re-write to themselves.
- Specified by:
createWeight
in classSpanQuery
scoreMode
- How the produced scorers will be consumed.boost
- The boost that is propagated by the parent queries.- Throws:
java.io.IOException
-
-