org.apache.lucene.search.spans
public class SpanTermQuery extends SpanQuery
Field Summary | |
---|---|
protected Term | term |
Constructor Summary | |
---|---|
SpanTermQuery(Term term) Construct a SpanTermQuery matching the named term's spans. |
Method Summary | |
---|---|
boolean | equals(Object o) Returns true iff o is equal to this. |
void | extractTerms(Set terms) |
String | getField() |
Spans | getSpans(IndexReader reader) |
Term | getTerm() Return the term whose spans are matched. |
Collection | getTerms() Returns a collection of all terms matched by this query. |
int | hashCode() Returns a hash code value for this object. |
String | toString(String field) |
o
is equal to this.Deprecated: use extractTerms instead
Returns a collection of all terms matched by this query.See Also: extractTerms