Lucene++ - a full-featured, c++ search engine
API Documentation
boost::shared_ptr< SpanQuery > SpanQueryPtr
Definition: LuceneTypes.h:450
Base class for span-based queries.
Definition: SpanQuery.h:15
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
virtual bool equals(const LuceneObjectPtr &other)
Return whether two objects are equal.
virtual String getField()
Returns the name of the field matched by this query.
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
boost::shared_ptr< Query > QueryPtr
Definition: LuceneTypes.h:420
Removes matches which overlap with another SpanQuery.
Definition: SpanNotQuery.h:15
virtual SpansPtr getSpans(const IndexReaderPtr &reader)
Returns the matches for this query in an index. Used internally to search for spans.
virtual QueryPtr rewrite(const IndexReaderPtr &reader)
Called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into ...
Definition: AbstractAllTermDocs.h:12
SpanQueryPtr include
Definition: SpanNotQuery.h:21
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
SpanQueryPtr getInclude()
Return the SpanQuery whose matches are filtered.
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Returns a clone of 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...
virtual String toString(const String &field)
Prints a query to a string, with field assumed to be the default field and omitted.
SpanQueryPtr exclude
Definition: SpanNotQuery.h:25
boost::shared_ptr< Spans > SpansPtr
Definition: LuceneTypes.h:453
virtual int32_t hashCode()
Return hash code for this object.
SpanQueryPtr getExclude()
Return the SpanQuery whose matches must not overlap those returned.
virtual String toString()
Prints a query to a string.
SpanNotQuery(const SpanQueryPtr &include, const SpanQueryPtr &exclude)
Construct a SpanNotQuery matching spans from include which have no overlap with spans from exclude.
clucene.sourceforge.net