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(java.lang.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.
|
java.lang.String |
toString(java.lang.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 java.io.IOException
Querypublic java.lang.String toString(java.lang.String field)
public boolean equals(java.lang.Object o)
o is equal to this.equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.