Lucene.Net.Index.IndexReader.Flush C# (CSharp) Method

Flush() public method

public Flush ( ) : void
return void
		public void  Flush()
		{
			lock (this)
			{
				EnsureOpen();
				Commit();
			}
		}
		

Same methods

IndexReader::Flush ( string>.IDictionary commitUserData ) : void

Usage Example

Ejemplo n.º 1
0
        // try cloning and reopening the norms
        private void  DoTestNorms(Directory dir)
        {
            AddDocs(dir, 12, true);
            IndexReader ir = IndexReader.Open(dir);

            VerifyIndex(ir);
            ModifyNormsForF1(ir);
            IndexReader irc = (IndexReader)ir.Clone();              // IndexReader.open(dir);//ir.clone();

            VerifyIndex(irc);

            ModifyNormsForF1(irc);

            IndexReader irc3 = (IndexReader)irc.Clone();

            VerifyIndex(irc3);
            ModifyNormsForF1(irc3);
            VerifyIndex(irc3);
            irc3.Flush();
            irc3.Close();
        }
All Usage Examples Of Lucene.Net.Index.IndexReader::Flush