#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
virtual String toString()
Returns a string representation of the object.
virtual SpansPtr getSpans(const IndexReaderPtr &reader)
Returns the matches for this query in an index. Used internally to search for spans.
Collection< SpanQueryPtr > clauses
Definition SpanOrQuery.h:24
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...
friend class OrSpans
Definition SpanOrQuery.h:42
virtual int32_t hashCode()
Return hash code for this object.
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Returns a clone of this query.
SpanOrQuery(Collection< SpanQueryPtr > clauses)
Construct a SpanOrQuery merging the provided clauses.
virtual String toString(const String &field)
Prints a query to a string, with field assumed to be the default field and omitted.
virtual bool equals(const LuceneObjectPtr &other)
Return whether two objects are equal.
String field
Definition SpanOrQuery.h:25
virtual QueryPtr rewrite(const IndexReaderPtr &reader)
Called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into ...
Collection< SpanQueryPtr > getClauses()
Return the clauses whose spans are matched.
Base class for span-based queries.
Definition SpanQuery.h:15
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< Query > QueryPtr
Definition LuceneTypes.h:420
boost::shared_ptr< Spans > SpansPtr
Definition LuceneTypes.h:453
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition LuceneTypes.h:539
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition LuceneTypes.h:157