|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.search.Query
org.apache.lucene.search.PrefixQuery
public class PrefixQuery
A Query that matches documents containing terms with a specified prefix.
Constructor Summary | |
---|---|
PrefixQuery(Term prefix)
Constructs a query for terms starting with prefix . |
Method Summary | |
---|---|
Query |
combine(Query[] queries)
Expert: called when re-writing queries under MultiSearcher. |
Term |
getPrefix()
Returns the prefix of this query. |
Query |
rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries. |
java.lang.String |
toString(java.lang.String field)
Prints a user-readable version of this query. |
Methods inherited from class org.apache.lucene.search.Query |
---|
clone, createWeight, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weight |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PrefixQuery(Term prefix)
prefix
.
Method Detail |
---|
public Term getPrefix()
public Query rewrite(IndexReader reader) throws java.io.IOException
Query
rewrite
in class Query
java.io.IOException
public Query combine(Query[] queries)
Query
Only implemented by derived queries, with no
Query.createWeight(Searcher)
implementatation.
combine
in class Query
public java.lang.String toString(java.lang.String field)
toString
in class Query
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |