Lucene.Net.Index.IndexWriter.IndexWriter C# (CSharp) Method

IndexWriter() public method

Expert: constructs an IndexWriter with a custom IndexDeletionPolicy , for the index in d. Text will be analyzed with a. If create is true, then a new, empty index will be created in d, replacing the index already there, if any. has this index open (write.lock could not be obtained) if it does not exist and create is false or if there is any other low-level IO error
public IndexWriter ( Lucene.Net.Store.Directory d, Lucene.Net.Analysis.Analyzer a, bool create, IndexDeletionPolicy deletionPolicy, MaxFieldLength mfl ) : System
d Lucene.Net.Store.Directory the index directory ///
a Lucene.Net.Analysis.Analyzer the analyzer to use ///
create bool true to create the index or overwrite /// the existing one; false to append to the existing /// index ///
deletionPolicy IndexDeletionPolicy see above ///
mfl MaxFieldLength , whether or not to limit field lengths. Value is in number of terms/tokens ///
return System
		public IndexWriter(Directory d, Analyzer a, bool create, IndexDeletionPolicy deletionPolicy, MaxFieldLength mfl)
		{
			InitBlock();
			Init(d, a, create, deletionPolicy, mfl.Limit, null, null);
		}
		

Same methods

IndexWriter::IndexWriter ( ) : System
IndexWriter::IndexWriter ( Lucene.Net.Store.Directory d, Lucene.Net.Analysis.Analyzer a, IndexDeletionPolicy deletionPolicy, MaxFieldLength mfl ) : System
IndexWriter::IndexWriter ( Lucene.Net.Store.Directory d, Lucene.Net.Analysis.Analyzer a, IndexDeletionPolicy deletionPolicy, MaxFieldLength mfl, IndexCommit commit ) : System
IndexWriter::IndexWriter ( Lucene.Net.Store.Directory d, Lucene.Net.Analysis.Analyzer a, MaxFieldLength mfl ) : System
IndexWriter::IndexWriter ( Lucene.Net.Store.Directory d, Lucene.Net.Analysis.Analyzer a, bool create, IndexDeletionPolicy deletionPolicy, MaxFieldLength mfl, Lucene.Net.Index.DocumentsWriter.IndexingChain indexingChain, IndexCommit commit ) : System
IndexWriter::IndexWriter ( Lucene.Net.Store.Directory d, Lucene.Net.Analysis.Analyzer a, bool create, MaxFieldLength mfl ) : System
IndexWriter