public class PrefixQuery extends Query
app*.| Constructor and Description |
|---|
PrefixQuery(Term prefix)
Constructs a query for terms starting with
prefix. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Returns true iff
o is equal to this. |
Term |
getPrefix()
Returns the prefix of this query.
|
int |
hashCode()
Returns a hash code value for this object.
|
Query |
rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries.
|
String |
toString(String field)
Prints a user-readable version of this query.
|
clone, combine, createWeight, extractTerms, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weightpublic PrefixQuery(Term prefix)
prefix.public Term getPrefix()
public Query rewrite(IndexReader reader) throws IOException
Queryrewrite in class QueryIOExceptionpublic boolean equals(Object o)
o is equal to this.Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.