com.lucene.search
Class Query

java.lang.Object
  |
  +--com.lucene.search.Query
Direct Known Subclasses:
BooleanQuery, PhraseQuery, PrefixQuery, TermQuery

public abstract class Query
extends Object

The abstract base class for queries.

Instantiable subclasses are:

A parser for queries is contained in:


Constructor Summary
Query()
           
 
Method Summary
abstract  String toString(String field)
          Prints a query to a string, with field as the default field for terms.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Query

public Query()
Method Detail

toString

public abstract String toString(String field)
Prints a query to a string, with field as the default field for terms.

The representation used is one that is readable by QueryParser (although, if the query was created by the parser, the printed representation may not be exactly what was parsed).