C# (CSharp) Lucene.Net.Index IndexReader.IncRef - 7 examples found. These are the top rated real world C# (CSharp) examples of Lucene.Net.Index.IndexReader.IncRef extracted from open source projects. You can rate examples to help us improve the quality of examples.
Expert: increments the refCount of this IndexReader instance. RefCounts are used to determine when a reader can be closed safely, i.e. as soon as there are no more references. Be sure to always call a corresponding DecRef, in a finally clause; otherwise the reader may never be closed. Note that Close simply calls decRef(), which means that the IndexReader will not really be closed until DecRef has been called for all outstanding references.