Package org.apache.lucene.queries.spans
Class SpanWithinQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.queries.spans.SpanQuery
org.apache.lucene.queries.spans.SpanWithinQuery
- All Implemented Interfaces:
Cloneable
Keep matches that are contained within another Spans.
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Creates SpanWithinQuery scorer instances -
Constructor Summary
ConstructorDescriptionSpanWithinQuery
(SpanQuery big, SpanQuery little) Construct a SpanWithinQuery matching spans fromlittle
that are inside ofbig
. -
Method Summary
Modifier and TypeMethodDescriptioncreateWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) boolean
getBig()
getField()
Returns the name of the field matched by this query.int
hashCode()
rewrite
(IndexReader reader) void
visit
(QueryVisitor visitor) Methods inherited from class org.apache.lucene.queries.spans.SpanQuery
getTermStates, getTermStates
Methods inherited from class org.apache.lucene.search.Query
classHash, sameClassAs, toString
-
Constructor Details
-
SpanWithinQuery
Construct a SpanWithinQuery matching spans fromlittle
that are inside ofbig
. This query has the boost oflittle
.big
andlittle
must be in the same field.
-
-
Method Details
-
toString
-
createWeight
public SpanWeight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException - Specified by:
createWeight
in classSpanQuery
- Throws:
IOException
-
getField
Description copied from class:SpanQuery
Returns the name of the field matched by this query. -
getBig
-
getLittle
-
rewrite
- Overrides:
rewrite
in classQuery
- Throws:
IOException
-
visit
-
equals
-
hashCode
public int hashCode()
-