Package org.apache.lucene.queries.spans
Class SpanContainingQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.lucene.queries.spans.SpanQuery
-
- org.apache.lucene.queries.spans.SpanContainingQuery
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSpanContainingQuery.SpanContainingWeightCreates SpanContainingQuery scorer instances
-
Constructor Summary
Constructors Constructor Description SpanContainingQuery(SpanQuery big, SpanQuery little)Construct a SpanContainingQuery matching spans frombigthat contain at least one spans fromlittle.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpanWeightcreateWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)booleanequals(Object other)SpanQuerygetBig()StringgetField()Returns the name of the field matched by this query.SpanQuerygetLittle()inthashCode()Queryrewrite(IndexSearcher indexSearcher)StringtoString(String field)voidvisit(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:
createWeightin classSpanQuery- Throws:
IOException
-
getField
public String getField()
Description copied from class:SpanQueryReturns 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:
rewritein classQuery- Throws:
IOException
-
visit
public void visit(QueryVisitor visitor)
-
-