Save This Page
Home » lucene-3.0.1-src » org.apache » lucene » search » spans » [javadoc | source]
org.apache.lucene.search.spans
public class: SpanFirstQuery [javadoc | source]
java.lang.Object
   org.apache.lucene.search.Query
      org.apache.lucene.search.spans.SpanQuery
         org.apache.lucene.search.spans.SpanFirstQuery

All Implemented Interfaces:
    Cloneable, Serializable

Matches spans near the beginning of a field.
Constructor:
 public SpanFirstQuery(SpanQuery match,
    int end) 
    Construct a SpanFirstQuery matching spans in match whose end position is less than or equal to end.
Method from org.apache.lucene.search.spans.SpanFirstQuery Summary:
clone,   equals,   extractTerms,   getEnd,   getField,   getMatch,   getSpans,   hashCode,   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.SpanFirstQuery Detail:
 public Object clone() 
 public boolean equals(Object o) 
 public  void extractTerms(Set<Term> terms) 
 public int getEnd() 
    Return the maximum end position permitted in a match.
 public String getField() 
 public SpanQuery getMatch() 
    Return the SpanQuery whose matches are filtered.
 public Spans getSpans(IndexReader reader) throws IOException 
 public int hashCode() 
 public Query rewrite(IndexReader reader) throws IOException 
 public String toString(String field)