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

IndexWriter() public method

Expert: constructs an IndexWriter on specific commit point, with a custom IndexDeletionPolicy, for the index in d. Text will be analyzed with a.

This is only meaningful if you've used a IndexDeletionPolicy in that past that keeps more than just the last commit.

This operation is similar to Rollback(), except that method can only rollback what's been done with the current instance of IndexWriter since its last commit, whereas this method can rollback to an arbitrary commit point from the past, assuming the IndexDeletionPolicy has preserved past commits. 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, IndexDeletionPolicy deletionPolicy, MaxFieldLength mfl, IndexCommit commit ) : System
d Lucene.Net.Store.Directory the index directory ///
a Lucene.Net.Analysis.Analyzer the analyzer to use ///
deletionPolicy IndexDeletionPolicy see above ///
mfl MaxFieldLength whether or not to limit field lengths, value is in number of terms/tokens. See . ///
commit IndexCommit which commit to open ///
return System
		public IndexWriter(Directory d, Analyzer a, IndexDeletionPolicy deletionPolicy, MaxFieldLength mfl, IndexCommit commit)
		{
			InitBlock();
			Init(d, a, false, deletionPolicy, mfl.Limit, null, commit);
		}
		

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, MaxFieldLength mfl ) : System
IndexWriter::IndexWriter ( Lucene.Net.Store.Directory d, Lucene.Net.Analysis.Analyzer a, bool create, IndexDeletionPolicy deletionPolicy, 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