Returns an IndexReader reading the index in the given
Directory. You should pass readOnly=true, since it
gives much better concurrent performance, unless you
intend to do write operations (delete documents or
change norms) with the reader.
Namespace: Lucene.Net.IndexAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public static IndexReader Open( Directory directory, bool readOnly ) |
Visual Basic |
---|
Public Shared Function Open ( _ directory As Directory, _ readOnly As Boolean _ ) As IndexReader |
Visual C++ |
---|
public: static IndexReader^ Open( Directory^ directory, bool readOnly ) |
Parameters
- directory
- Type: Lucene.Net.Store..::..Directory
the index directory
- readOnly
- Type: System..::..Boolean
true if no changes (deletions, norms) will be made with this IndexReader
Return Value
[Missing <returns> documentation for "M:Lucene.Net.Index.IndexReader.Open(Lucene.Net.Store.Directory,System.Boolean)"]