Lucene.Net 1.4.3 Class Library

IndexWriter Methods

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

Public Instance Methods

AddDocumentOverloaded. Adds a document to this index, using the provided analyzer instead of the value of {@link #GetAnalyzer()}. If the document contains more than {@link #maxFieldLength} terms for a given Field, the remainder are discarded.
AddIndexesOverloaded. Merges the provided indexes into this index. After this completes, the index is optimized. The provided IndexReaders are not closed.
CloseFlushes all changes to an index and closes all associated files.
DocCountReturns the number of documents currently in this index.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetAnalyzerReturns the analyzer used by this index.
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.
GetSimilarity 
GetType (inherited from Object) Gets the Type of the current instance.
GetUseCompoundFileSetting to turn on usage of a compound file. When on, multiple files for each segment are merged into a single file once the segment creation is finished. This is done regardless of what directory is in use.
OptimizeMerges all segments together into a single segment, optimizing an index for search.
SetSimilarityExpert: Set the Similarity implementation used by this IndexWriter.
SetUseCompoundFileSetting to turn on usage of a compound file. When on, multiple files for each segment are merged into a single file once the segment creation is finished. This is done regardless of what directory is in use.
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Methods

FinalizeRelease the write lock, if needed.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

IndexWriter Class | Lucene.Net.Index Namespace