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.
|
Inherits Lucene.Net.Index.SegmentTermVector, and Lucene.Net.Index.TermPositionVector.
Public Member Functions | |
SegmentTermPositionVector (System.String field, System.String[] terms, int[] termFreqs, int[][] positions, TermVectorOffsetInfo[][] offsets) | |
virtual TermVectorOffsetInfo[] | GetOffsets (int index) |
Returns an array of TermVectorOffsetInfo in which the term is found. | |
virtual int[] | GetTermPositions (int index) |
Returns an array of positions in which the term is found. Terms are identified by the index at which its number appears in the term String array obtained from the indexOf method. | |
Public Member Functions inherited from Lucene.Net.Index.SegmentTermVector | |
override System.String | ToString () |
virtual System.String[] | GetTerms () |
virtual int[] | GetTermFrequencies () |
Array of term frequencies. Locations of the array correspond one to one to the terms in the array obtained from getTerms method. Each location in the array contains the number of times this term occurs in the document or the document field. | |
virtual int | IndexOf (System.String termText) |
Return an index in the term numbers array returned from getTerms at which the term with the specified term appears. If this term does not appear in the array, return -1. | |
virtual int[] | IndexesOf (System.String[] termNumbers, int start, int len) |
Just like indexOf(int) but searches for a number of terms at the same time. Returns an array that has the same size as the number of terms searched for, each slot containing the result of searching for that term number. | |
Static Public Attributes | |
static readonly int[] | EMPTY_TERM_POS = new int[0] |
Additional Inherited Members | |
Properties inherited from Lucene.Net.Index.SegmentTermVector | |
virtual string | Field [get] |
| |
virtual int | Size [get] |
Properties inherited from Lucene.Net.Index.ITermFreqVector | |
string | Field [get] |
The IFieldable name. | |
int | Size [get] |
The number of terms in the term vector. | |
Definition at line 23 of file SegmentTermPositionVector.cs.
Lucene.Net.Index.SegmentTermPositionVector.SegmentTermPositionVector | ( | System.String | field, |
System.String[] | terms, | ||
int[] | termFreqs, | ||
int | positions[][], | ||
TermVectorOffsetInfo | offsets[][] | ||
) |
Definition at line 29 of file SegmentTermPositionVector.cs.
|
virtual |
Returns an array of TermVectorOffsetInfo in which the term is found.
index | The position in the array to get the offsets from |
Implements Lucene.Net.Index.TermPositionVector.
Definition at line 44 of file SegmentTermPositionVector.cs.
|
virtual |
Returns an array of positions in which the term is found. Terms are identified by the index at which its number appears in the term String array obtained from the indexOf
method.
Implements Lucene.Net.Index.TermPositionVector.
Definition at line 60 of file SegmentTermPositionVector.cs.
|
static |
Definition at line 27 of file SegmentTermPositionVector.cs.