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

All Implemented Interfaces:
    Cloneable, Serializable

Direct Known Subclasses:
    BoostingTermQuery

Matches spans containing a term.
Field Summary
protected  Term term     
Constructor:
 public SpanTermQuery(Term term) 
    Construct a SpanTermQuery matching the named term's spans.
Method from org.apache.lucene.search.spans.SpanTermQuery Summary:
equals,   extractTerms,   getField,   getSpans,   getTerm,   getTerms,   hashCode,   toString
Methods from org.apache.lucene.search.spans.SpanQuery:
createWeight,   getField,   getSpans,   getTerms
Methods from org.apache.lucene.search.Query:
clone,   combine,   createWeight,   extractTerms,   getBoost,   getSimilarity,   mergeBooleanQueries,   rewrite,   setBoost,   toString,   toString,   weight
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.search.spans.SpanTermQuery Detail:
 public boolean equals(Object o) 
    Returns true iff o is equal to this.
 public  void extractTerms(Set terms) 
 public String getField() 
 public Spans getSpans(IndexReader reader) throws IOException 
 public Term getTerm() 
    Return the term whose spans are matched.
 public Collection getTerms() 
Deprecated! use - extractTerms instead

    Returns a collection of all terms matched by this query.
 public int hashCode() 
    Returns a hash code value for this object.
 public String toString(String field)