Lucene.Net
3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
|
Similar to NearSpansOrdered, but for the unordered case. More...
Inherits Lucene.Net.Search.Spans.Spans.
Public Member Functions | |
NearSpansUnordered (SpanNearQuery query, IndexReader reader) | |
virtual Spans[] | GetSubSpans () |
override bool | Next () |
Move to the next match, returning true iff any such exists. | |
override bool | SkipTo (int target) |
Skips to the first match beyond the current, whose document number is greater than or equal to target. Returns true iff there is such a match. Behaves as if written: | |
override int | Doc () |
Returns the document number of the current match. Initially invalid. | |
override int | Start () |
Returns the start position of the current match. Initially invalid. | |
override int | End () |
Returns the end position of the current match. Initially invalid. | |
override ICollection< byte[]> | GetPayload () |
WARNING: The List is not necessarily in order of the the positions | |
override bool | IsPayloadAvailable () |
Checks if a payload can be loaded at this position. Payloads can only be loaded once per call to Next(). | |
override System.String | ToString () |
Similar to NearSpansOrdered, but for the unordered case.
Expert: Only public for subclassing. Most implementations should not need this class
Definition at line 32 of file NearSpansUnordered.cs.
Lucene.Net.Search.Spans.NearSpansUnordered.NearSpansUnordered | ( | SpanNearQuery | query, |
IndexReader | reader | ||
) |
Definition at line 177 of file NearSpansUnordered.cs.
|
virtual |
Returns the document number of the current match. Initially invalid.
Implements Lucene.Net.Search.Spans.Spans.
Definition at line 304 of file NearSpansUnordered.cs.
|
virtual |
Returns the end position of the current match. Initially invalid.
Implements Lucene.Net.Search.Spans.Spans.
Definition at line 312 of file NearSpansUnordered.cs.
|
virtual |
WARNING: The List is not necessarily in order of the the positions
<throws> IOException </throws>
Implements Lucene.Net.Search.Spans.Spans.
Definition at line 322 of file NearSpansUnordered.cs.
|
virtual |
Definition at line 192 of file NearSpansUnordered.cs.
|
virtual |
Checks if a payload can be loaded at this position. Payloads can only be loaded once per call to Next().
Implements Lucene.Net.Search.Spans.Spans.
Definition at line 337 of file NearSpansUnordered.cs.
|
virtual |
Move to the next match, returning true iff any such exists.
Implements Lucene.Net.Search.Spans.Spans.
Definition at line 196 of file NearSpansUnordered.cs.
|
virtual |
Skips to the first match beyond the current, whose document number is greater than or equal to target. Returns true iff there is such a match. Behaves as if written:
boolean skipTo(int target) { do { if (!next()) return false; } while (target > doc()); return true; }
Most implementations are considerably more efficient than that.
Implements Lucene.Net.Search.Spans.Spans.
Definition at line 264 of file NearSpansUnordered.cs.
|
virtual |
Returns the start position of the current match. Initially invalid.
Implements Lucene.Net.Search.Spans.Spans.
Definition at line 308 of file NearSpansUnordered.cs.
override System.String Lucene.Net.Search.Spans.NearSpansUnordered.ToString | ( | ) |
Definition at line 352 of file NearSpansUnordered.cs.