org.apache.lucene.search.spans

Class SpanOrQuery

public class SpanOrQuery extends SpanQuery

Matches the union of its clauses.
Constructor Summary
SpanOrQuery(SpanQuery[] clauses)
Construct a SpanOrQuery merging the provided clauses.
Method Summary
booleanequals(Object o)
voidextractTerms(Set terms)
SpanQuery[]getClauses()
Return the clauses whose spans are matched.
StringgetField()
SpansgetSpans(IndexReader reader)
CollectiongetTerms()
Returns a collection of all terms matched by this query.
inthashCode()
Queryrewrite(IndexReader reader)
StringtoString(String field)

Constructor Detail

SpanOrQuery

public SpanOrQuery(SpanQuery[] clauses)
Construct a SpanOrQuery merging the provided clauses.

Method Detail

equals

public boolean equals(Object o)

extractTerms

public void extractTerms(Set terms)

getClauses

public SpanQuery[] getClauses()
Return the clauses whose spans are matched.

getField

public String getField()

getSpans

public Spans getSpans(IndexReader reader)

getTerms

public Collection getTerms()

Deprecated: use extractTerms instead

Returns a collection of all terms matched by this query.

See Also: extractTerms

hashCode

public int hashCode()

rewrite

public Query rewrite(IndexReader reader)

toString

public String toString(String field)
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.