org.apache.lucene.search
Class PrefixQuery
java.lang.Object
|
+--org.apache.lucene.search.Query
|
+--org.apache.lucene.search.PrefixQuery
- All Implemented Interfaces:
- Serializable
- public final class PrefixQuery
- extends Query
A Query that matches documents containing terms with a specified prefix.
- See Also:
- Serialized Form
Fields inherited from class org.apache.lucene.search.Query |
boost |
Constructor Summary |
PrefixQuery(Term prefix)
Constructs a query for terms starting with prefix . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrefixQuery
public PrefixQuery(Term prefix)
- Constructs a query for terms starting with
prefix
.
toString
public String toString(String field)
- Prints a user-readable version of this query.
- Overrides:
toString
in class Query
Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.