java.lang.Object | |||
↳ | org.apache.lucene.search.Query | ||
↳ | org.apache.lucene.search.spans.SpanQuery | ||
↳ | org.apache.lucene.search.spans.SpanTermQuery |
Known Direct Subclasses |
Matches spans containing a term.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
term |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a SpanTermQuery matching the named term's spans.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Expert: adds all terms occurring in this query to the terms set.
| |||||||||||
Returns the name of the field matched by this query.
| |||||||||||
Expert: Returns the matches for this query in an index.
| |||||||||||
Return the term whose spans are matched.
| |||||||||||
Prints a query to a string, with
field assumed to be the
default field and omitted. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.search.spans.SpanQuery
| |||||||||||
From class
org.apache.lucene.search.Query
| |||||||||||
From class
java.lang.Object
|
Expert: adds all terms occurring in this query to the terms set. Only
works if this query is in its rewritten
form.
Expert: Returns the matches for this query in an index. Used internally to search for spans.
IOException |
---|
Prints a query to a string, with field
assumed to be the
default field and omitted.
The representation used is one that is supposed to be readable
by QueryParser
. However,
there are the following limitations: