#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
virtual String toString(const String &field)
Prints a query to a string, with field assumed to be the default field and omitted.
virtual WeightPtr createWeight(const SearcherPtr &searcher)
Constructs an appropriate Weight implementation for this query. Only implemented by primitive queries...
virtual void extractTerms(SetTerm terms)
Adds all terms occurring in this query to the terms set. Only works if this query is in its rewritten...
TermQuery(const TermPtr &term)
Constructs a query for the term.
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Returns a clone of this query.
virtual int32_t hashCode()
Return hash code for this object.
virtual String toString(const String &field)
Prints a user-readable version of this query.
TermPtr getTerm()
Returns the term of this query.
virtual bool equals(const LuceneObjectPtr &other)
Return whether two objects are equal.
friend class TermWeight
Definition TermQuery.h:44
TermPtr term
Definition TermQuery.h:26
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< Weight > WeightPtr
Definition LuceneTypes.h:480
boost::shared_ptr< Searcher > SearcherPtr
Definition LuceneTypes.h:434
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition LuceneTypes.h:539
boost::shared_ptr< Term > TermPtr
Definition LuceneTypes.h:233