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.
 
Method Summary
 String toString(String field)
          Prints a user-readable version of this query.
 
Methods inherited from class org.apache.lucene.search.Query
getBoost, setBoost
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrefixQuery

public PrefixQuery(Term prefix)
Constructs a query for terms starting with prefix.
Method Detail

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.