java.lang.Object | |||
↳ | org.apache.lucene.search.Query | ||
↳ | org.apache.lucene.search.spans.SpanQuery | ||
↳ | org.apache.lucene.search.spans.SpanFirstQuery |
Matches spans near the beginning of a field.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a SpanFirstQuery matching spans in
match whose end
position is less than or equal to end . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a clone of this query.
| |||||||||||
Expert: adds all terms occurring in this query to the terms set.
| |||||||||||
Return the maximum end position permitted in a match.
| |||||||||||
Returns the name of the field matched by this query.
| |||||||||||
Return the SpanQuery whose matches are filtered.
| |||||||||||
Expert: Returns the matches for this query in an index.
| |||||||||||
Expert: called to re-write queries into primitive queries.
| |||||||||||
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
|
Construct a SpanFirstQuery matching spans in match
whose end
position is less than or equal to end
.
Expert: adds all terms occurring in this query to the terms set. Only
works if this query is in its rewritten
form.
Return the maximum end position permitted in a match.
Expert: Returns the matches for this query in an index. Used internally to search for spans.
IOException |
---|
Expert: called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into a BooleanQuery that consists of TermQuerys.
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: