java.lang.Object | |||
↳ | org.apache.lucene.search.Query | ||
↳ | org.apache.lucene.search.MultiTermQuery | ||
↳ | org.apache.lucene.search.PrefixQuery |
A Query that matches documents containing terms with a specified prefix. A PrefixQuery
is built by QueryParser for input like app*
.
This query uses the CONSTANT_SCORE_AUTO_REWRITE_DEFAULT
rewrite method.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.search.MultiTermQuery
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a query for terms starting with
prefix . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the prefix of this query.
| |||||||||||
Prints a user-readable version of this query.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct the enumeration to be used, expanding the pattern term.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.search.MultiTermQuery
| |||||||||||
From class
org.apache.lucene.search.Query
| |||||||||||
From class
java.lang.Object
|
Construct the enumeration to be used, expanding the pattern term.
IOException |
---|