Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef SPANFIRSTQUERY_H
8 #define SPANFIRSTQUERY_H
47 friend class FirstSpans;
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 void extractTerms(SetTerm terms)
Adds all terms occurring in this query to the terms set. Only works if this query is in its rewritten...
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
SpanFirstQuery(const SpanQueryPtr &match, int32_t end)
Construct a SpanFirstQuery matching spans in match whose end position is less than or equal to end.
boost::shared_ptr< Query > QueryPtr
Definition: LuceneTypes.h:420
virtual int32_t hashCode()
Return hash code for this object.
SpanQueryPtr match
Definition: SpanFirstQuery.h:22
virtual ~SpanFirstQuery()
virtual bool equals(const LuceneObjectPtr &other)
Return whether two objects are equal.
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
int32_t end
Definition: SpanFirstQuery.h:26
SpanQueryPtr getMatch()
Return the SpanQuery whose matches are filtered.
int32_t getEnd()
Return the maximum end position permitted in a match.
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Returns a clone of this query.
virtual String getField()
Returns the name of the field matched by this query.
boost::shared_ptr< Spans > SpansPtr
Definition: LuceneTypes.h:453
virtual String toString(const String &field)
Prints a query to a string, with field assumed to be the default field and omitted.
Matches spans near the beginning of a field.
Definition: SpanFirstQuery.h:16
virtual QueryPtr rewrite(const IndexReaderPtr &reader)
Called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into ...
virtual SpansPtr getSpans(const IndexReaderPtr &reader)
Returns the matches for this query in an index. Used internally to search for spans.
virtual String toString()
Prints a query to a string.
clucene.sourceforge.net