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.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Public Member Functions | Properties | List of all members
Lucene.Net.Index.SegmentTermVector Class Reference

Inherits Lucene.Net.Index.ITermFreqVector.

Inherited by Lucene.Net.Index.SegmentTermPositionVector.

Public Member Functions

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.
 

Properties

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.
 

Detailed Description

Definition at line 24 of file SegmentTermVector.cs.

Member Function Documentation

virtual int [] Lucene.Net.Index.SegmentTermVector.GetTermFrequencies ( )
virtual

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.

Implements Lucene.Net.Index.ITermFreqVector.

Definition at line 73 of file SegmentTermVector.cs.

virtual System.String [] Lucene.Net.Index.SegmentTermVector.GetTerms ( )
virtual
Returns
An Array of term texts in ascending order.

Implements Lucene.Net.Index.ITermFreqVector.

Definition at line 68 of file SegmentTermVector.cs.

virtual int [] Lucene.Net.Index.SegmentTermVector.IndexesOf ( System.String[]  terms,
int  start,
int  len 
)
virtual

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.

Parameters
termsarray containing terms to look for
startindex in the array where the list of terms starts
lenthe number of terms in the list

Implements Lucene.Net.Index.ITermFreqVector.

Definition at line 86 of file SegmentTermVector.cs.

virtual int Lucene.Net.Index.SegmentTermVector.IndexOf ( System.String  term)
virtual

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.

Implements Lucene.Net.Index.ITermFreqVector.

Definition at line 78 of file SegmentTermVector.cs.

override System.String Lucene.Net.Index.SegmentTermVector.ToString ( )

Definition at line 44 of file SegmentTermVector.cs.

Property Documentation

virtual string Lucene.Net.Index.SegmentTermVector.Field
get

The number of the field this vector is associated with

Definition at line 40 of file SegmentTermVector.cs.

virtual int Lucene.Net.Index.SegmentTermVector.Size
get

Definition at line 64 of file SegmentTermVector.cs.


The documentation for this class was generated from the following file: