27 using SpanQuery::toString;
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Base class for span-based queries.
Definition SpanQuery.h:15
Matches spans containing a term.
Definition SpanTermQuery.h:15
TermPtr getTerm()
Return the term whose spans are matched.
virtual int32_t hashCode()
Return hash code for this object.
virtual SpansPtr getSpans(const IndexReaderPtr &reader)
Returns the matches for this query in an index. Used internally to search for spans.
virtual bool equals(const LuceneObjectPtr &other)
Return whether two objects are equal.
SpanTermQuery(const TermPtr &term)
Construct a SpanTermQuery matching the named term's spans.
virtual String getField()
Returns the name of the field matched by this query.
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...
TermPtr term
Definition SpanTermQuery.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 LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Returns a clone of this query.
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition LuceneTypes.h:539
boost::shared_ptr< Term > TermPtr
Definition LuceneTypes.h:233
boost::shared_ptr< Spans > SpansPtr
Definition LuceneTypes.h:453
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition LuceneTypes.h:157