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
Nested ClassesModifier and TypeClassDescriptionclassCreates SpanWithinQuery scorer instances -
Constructor Summary
ConstructorsConstructorDescriptionSpanWithinQuery(SpanQuery big, SpanQuery little) Construct a SpanWithinQuery matching spans fromlittlethat are inside ofbig. -
Method Summary
Modifier and TypeMethodDescriptioncreateWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) booleangetBig()getField()Returns the name of the field matched by this query.inthashCode()rewrite(IndexSearcher indexSearcher) voidvisit(QueryVisitor visitor) Methods inherited from class org.apache.lucene.queries.spans.SpanQuery
getTermStates, getTermStatesMethods inherited from class org.apache.lucene.search.Query
classHash, sameClassAs, toString
-
Constructor Details
-
SpanWithinQuery
Construct a SpanWithinQuery matching spans fromlittlethat are inside ofbig. This query has the boost oflittle.bigandlittlemust be in the same field.
-
-
Method Details
-
toString
-
createWeight
public SpanWeight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException - Specified by:
createWeightin classSpanQuery- Throws:
IOException
-
getField
Description copied from class:SpanQueryReturns the name of the field matched by this query. -
getBig
-
getLittle
-
rewrite
- Overrides:
rewritein classQuery- Throws:
IOException
-
visit
-
equals
-
hashCode
public int hashCode()
-