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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SpanWithinQuery.SpanWithinWeight
Creates SpanWithinQuery scorer instances
-
Constructor Summary
Constructors Constructor Description SpanWithinQuery(SpanQuery big, SpanQuery little)
Construct a SpanWithinQuery matching spans fromlittle
that are inside ofbig
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpanWeight
createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
boolean
equals(Object other)
SpanQuery
getBig()
String
getField()
Returns the name of the field matched by this query.SpanQuery
getLittle()
int
hashCode()
Query
rewrite(IndexSearcher indexSearcher)
String
toString(String field)
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, rewrite, sameClassAs, toString
-
-
-
-
Method Detail
-
createWeight
public SpanWeight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException
- Specified by:
createWeight
in classSpanQuery
- Throws:
IOException
-
getField
public String getField()
Description copied from class:SpanQuery
Returns the name of the field matched by this query.
-
getBig
public SpanQuery getBig()
-
getLittle
public SpanQuery getLittle()
-
rewrite
public Query rewrite(IndexSearcher indexSearcher) throws IOException
- Overrides:
rewrite
in classQuery
- Throws:
IOException
-
visit
public void visit(QueryVisitor visitor)
-
-