Returns an IndexReader reading the index in an
FSDirectory in the named path. 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# |
---|
[ObsoleteAttribute("Use Open(Directory, bool) instead. This method will be removed in the 3.0 release.")] public static IndexReader Open( FileInfo path, bool readOnly ) |
Visual Basic |
---|
<ObsoleteAttribute("Use Open(Directory, bool) instead. This method will be removed in the 3.0 release.")> _ Public Shared Function Open ( _ path As FileInfo, _ readOnly As Boolean _ ) As IndexReader |
Visual C++ |
---|
[ObsoleteAttribute(L"Use Open(Directory, bool) instead. This method will be removed in the 3.0 release.")] public: static IndexReader^ Open( FileInfo^ path, bool readOnly ) |
Parameters
- path
- Type: System.IO..::..FileInfo
the path to the index directory
- readOnly
- Type: System..::..Boolean
true if this should be a readOnly reader
Return Value
[Missing <returns> documentation for "M:Lucene.Net.Index.IndexReader.Open(System.IO.FileInfo,System.Boolean)"]