Save This Page
Home » lucene-3.0.1-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, PayloadTermQuery

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,   hashCode,   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.SpanTermQuery Detail:
 public boolean equals(Object obj) 
 public  void extractTerms(Set<Term> terms) 
 public String getField() 
 public Spans getSpans(IndexReader reader) throws IOException 
 public Term getTerm() 
    Return the term whose spans are matched.
 public int hashCode() 
 public String toString(String field)