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.Index
Assembly: 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(
	string 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 String, _
	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(
	String^ path, 
	bool readOnly
)

Parameters

path
Type: System..::..String
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.String,System.Boolean)"]

See Also