Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef NEARSPANSORDERED_H
8 #define NEARSPANSORDERED_H
59 virtual int32_t
doc();
61 virtual int32_t
end();
87 static bool docSpansOrdered(int32_t start1, int32_t end1, int32_t start2, int32_t end2);
bool more
Definition: NearSpansOrdered.h:41
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
int32_t matchEnd
Definition: NearSpansOrdered.h:51
bool toSameDoc()
Advance the subSpans to the same document.
static bool docSpansOrdered(int32_t start1, int32_t end1, int32_t start2, int32_t end2)
virtual Collection< ByteArray > getPayload()
Returns the payload data for the current span. This is invalid until next() is called for the first t...
bool inSameDoc
Indicates that all subSpans have same doc()
Definition: NearSpansOrdered.h:47
An enumeration of span matches. Used to implement span searching. Each span represents a range of ter...
Definition: Spans.h:17
int32_t matchDoc
Definition: NearSpansOrdered.h:49
NearSpansOrdered(const SpanNearQueryPtr &spanNearQuery, const IndexReaderPtr &reader, bool collectPayloads=true)
virtual bool isPayloadAvailable()
Checks if a payload can be loaded at this position.
int32_t matchStart
Definition: NearSpansOrdered.h:50
bool collectPayloads
Definition: NearSpansOrdered.h:56
boost::shared_ptr< SpanNearQuery > SpanNearQueryPtr
Definition: LuceneTypes.h:447
virtual bool next()
Move to the next match, returning true if any such exists.
virtual int32_t start()
Returns the start position of the current match. Initially invalid.
virtual bool skipTo(int32_t target)
Skips to the first match beyond the current, whose document number is greater than or equal to target...
Definition: AbstractAllTermDocs.h:12
static bool docSpansOrdered(const SpansPtr &spans1, const SpansPtr &spans2)
Check whether two Spans in the same document are ordered.
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
bool advanceAfterOrdered()
Advances the subSpans to just after an ordered match with a minimum slop that is smaller than the slo...
Collection< SpansPtr > subSpans
The spans in the same order as the SpanNearQuery.
Definition: NearSpansOrdered.h:44
virtual int32_t doc()
Returns the document number of the current match. Initially invalid.
virtual int32_t end()
Returns the end position of the current match. Initially invalid.
virtual ~NearSpansOrdered()
virtual String toString()
Returns a string representation of the object.
Collection< SpansPtr > getSubSpans()
A Spans that is formed from the ordered subspans of a SpanNearQuery where the subspans do not overlap...
Definition: NearSpansOrdered.h:31
Collection< SpansPtr > subSpansByDoc
Definition: NearSpansOrdered.h:54
Collection< ByteArray > matchPayload
Definition: NearSpansOrdered.h:52
bool shrinkToAfterShortestMatch()
The subSpans are ordered in the same doc, so there is a possible match. Compute the slop while making...
bool firstTime
Definition: NearSpansOrdered.h:40
int32_t allowedSlop
Definition: NearSpansOrdered.h:36
boost::shared_ptr< Spans > SpansPtr
Definition: LuceneTypes.h:453
SpanNearQueryPtr query
Definition: NearSpansOrdered.h:55
bool stretchToOrder()
Order the subSpans within the same document by advancing all later spans after the previous one.
clucene.sourceforge.net