Creates an FSDirectory instance, trying to pick the best implementation given the current environment. The directory returned uses the {@link NativeFSLockFactory}.

Currently this returns {@link SimpleFSDirectory} as NIOFSDirectory is currently not supported.

NOTE: this method may suddenly change which implementation is returned from release to release, in the event that higher performance defaults become possible; if the precise implementation is important to your application, please instantiate it directly, instead. On 64 bit systems, it may also good to return {@link MMapDirectory}, but this is disabled because of officially missing unmap support in Java. For optimal performance you should consider using this implementation on 64 bit JVMs.

See above

Namespace: Lucene.Net.Store
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public static FSDirectory Open(
	DirectoryInfo path
)
Visual Basic
Public Shared Function Open ( _
	path As DirectoryInfo _
) As FSDirectory
Visual C++
public:
static FSDirectory^ Open(
	DirectoryInfo^ path
)

Parameters

path
Type: System.IO..::..DirectoryInfo

[Missing <param name="path"/> documentation for "M:Lucene.Net.Store.FSDirectory.Open(System.IO.DirectoryInfo)"]

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Store.FSDirectory.Open(System.IO.DirectoryInfo)"]

See Also