Package org.apache.lucene.queries.spans
Class SpanOrQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.queries.spans.SpanQuery
org.apache.lucene.queries.spans.SpanOrQuery
Matches the union of its clauses.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassCreates SpanOrQuery scorer instances -
Constructor Summary
ConstructorsConstructorDescriptionSpanOrQuery(SpanQuery... clauses) Construct a SpanOrQuery merging the provided clauses. -
Method Summary
Modifier and TypeMethodDescriptioncreateWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) booleanReturn the clauses whose spans are matched.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
-
SpanOrQuery
Construct a SpanOrQuery merging the provided clauses. All clauses must have the same field.
-
-
Method Details
-
getClauses
Return the clauses whose spans are matched. -
getField
Description copied from class:SpanQueryReturns the name of the field matched by this query. -
rewrite
- Overrides:
rewritein classQuery- Throws:
IOException
-
visit
-
toString
-
equals
-
hashCode
public int hashCode() -
createWeight
public SpanWeight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException - Specified by:
createWeightin classSpanQuery- Throws:
IOException
-