Lucene.Net 1.4.3 Class Library

TermVectorsWriter Members

TermVectorsWriter overview

Public Static Fields

FORMAT_SIZE 
FORMAT_VERSION 
TVD_EXTENSION 
TVF_EXTENSION 
TVX_EXTENSION 

Public Instance Constructors

TermVectorsWriter Constructor Create term vectors writer for the specified segment in specified directory. A new TermVectorsWriter should be created for each segment. The parameter
maxFields
indicates how many total fields are found in this document. Not all of these fields may require termvectors to be stored, so the number of calls to
openField
is less or equal to this number.

Public Instance Methods

AddTermAdd term to the Field's term vector. Field must already be open of NullPointerException is thrown. Terms should be added in increasing order of terms, one call per unique termNum. ProxPointer is a pointer into the TermPosition file (prx). Freq is the number of times this term appears in this Field, in this document.
AddTermFreqVectorAdd specified vector to the document. Document must be open but no Field should be open or exception is thrown. The same document can have
addTerm
and
addVectors
calls mixed, however a given Field must either be populated with
addTerm
or with
addVector
. *
AddVectorsAdd specified vectors to the document.
CloseClose all streams.
CloseDocument 
CloseFieldFinished processing current Field. This should be followed by a call to openField before future calls to addTerm.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
IsDocumentOpen 
IsFieldOpenReturn true if a Field is currently open.
OpenDocument 
OpenFieldStart processing a Field. This can be followed by a number of calls to addTerm, and a final call to closeField to indicate the end of processing of this Field. If a Field was previously open, it is closed automatically.
ToString (inherited from Object) Returns a String that represents the current Object.

See Also

TermVectorsWriter Class | Lucene.Net.Index Namespace