Home » lucene-3.0.1-src » org.apache » lucene » search » spans » [javadoc | source]
public class: SpanNearQuery [javadoc | source]

All Implemented Interfaces:
    Cloneable, Serializable

Direct Known Subclasses:

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.
Field Summary
protected  List<SpanQuery> clauses     
protected  int slop     
protected  boolean inOrder     
protected  String field     
 public SpanNearQuery(SpanQuery[] clauses,
    int slop,
    boolean inOrder) 
    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.
 public SpanNearQuery(SpanQuery[] clauses,
    int slop,
    boolean inOrder,
    boolean collectPayloads) 
Method from org.apache.lucene.search.spans.SpanNearQuery Summary:
clone,   equals,   extractTerms,   getClauses,   getField,   getSlop,   getSpans,   hashCode,   isInOrder,   rewrite,   toString
Methods from org.apache.lucene.search.spans.SpanQuery:
createWeight,   getField,   getSpans
Methods from org.apache.lucene.search.Query:
clone,   combine,   createWeight,   equals,   extractTerms,   getBoost,   getSimilarity,   hashCode,   mergeBooleanQueries,   rewrite,   setBoost,   toString,   toString,   weight
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.search.spans.SpanNearQuery Detail:
 public Object clone() 
 public boolean equals(Object o) 
    Returns true iff o is equal to this.
 public  void extractTerms(Set<Term> terms) 
 public SpanQuery[] getClauses() 
    Return the clauses whose spans are matched.
 public String getField() 
 public int getSlop() 
    Return the maximum number of intervening unmatched positions permitted.
 public Spans getSpans(IndexReader reader) throws IOException 
 public int hashCode() 
 public boolean isInOrder() 
    Return true if matches are required to be in-order.
 public Query rewrite(IndexReader reader) throws IOException 
 public String toString(String field)