Lucene.Net 1.4.3 Class Library

TermVectorsWriter Methods

The methods of the TermVectorsWriter class are listed below. For a complete list of TermVectorsWriter class members, see the TermVectorsWriter Members topic.

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