| |
|
| java.lang.Object org.apache.lucene.search.Query org.apache.lucene.search.spans.SpanQuery org.apache.lucene.search.spans.SpanNearQuery
SpanNearQuery | public class SpanNearQuery extends SpanQuery (Code) | | Matches spans which are near one another. One can specify slop, the
maximum number of intervening unmatched positions, as well as whether
matches are required to be in-order.
|
Constructor Summary | |
public | SpanNearQuery(SpanQuery[] clauses, int slop, boolean inOrder) Construct a SpanNearQuery. |
SpanNearQuery | public SpanNearQuery(SpanQuery[] clauses, int slop, boolean inOrder)(Code) | | Construct a SpanNearQuery. Matches spans matching a span from each
clause, with up to slop total unmatched positions between
them. * When inOrder is true, the spans from each clause
must be * ordered as in clauses .
|
equals | public boolean equals(Object o)(Code) | | Returns true iff o is equal to this.
|
extractTerms | public void extractTerms(Set terms)(Code) | | |
getClauses | public SpanQuery[] getClauses()(Code) | | Return the clauses whose spans are matched.
|
getSlop | public int getSlop()(Code) | | Return the maximum number of intervening unmatched positions permitted.
|
hashCode | public int hashCode()(Code) | | |
isInOrder | public boolean isInOrder()(Code) | | Return true if matches are required to be in-order.
|
|
|
|