org.apache.lucene.search.spans
public class SpanNearQuery extends SpanQuery
Constructor Summary | |
---|---|
SpanNearQuery(SpanQuery[] clauses, int slop, boolean inOrder) Construct a SpanNearQuery. |
Method Summary | |
---|---|
boolean | equals(Object o) Returns true iff o is equal to this. |
void | extractTerms(Set terms) |
SpanQuery[] | getClauses() Return the clauses whose spans are matched. |
String | getField() |
int | getSlop() Return the maximum number of intervening unmatched positions permitted. |
Spans | getSpans(IndexReader reader) |
Collection | getTerms() Returns a collection of all terms matched by this query. |
int | hashCode() |
boolean | isInOrder() Return true if matches are required to be in-order. |
Query | rewrite(IndexReader reader) |
String | toString(String field) |
slop
total unmatched positions between
them. * When inOrder
is true, the spans from each clause
must be * ordered as in clauses
.o
is equal to this.Deprecated: use extractTerms instead
Returns a collection of all terms matched by this query.See Also: extractTerms