Index Constructor (String) |
Initializes a new instance of the
Index class.
Creates a new or opens an existing index on disk.
Namespace: GroupDocs.SearchAssembly: GroupDocs.Search (in GroupDocs.Search.dll) Version: 21.2
Syntaxpublic Index(
string indexFolder
)
Public Sub New (
indexFolder As String
)
public:
Index(
String^ indexFolder
)
new :
indexFolder : string -> Index
Parameters
- indexFolder
- Type: SystemString
The index folder path.
Examples
The example demonstrates how to create an index on a disk or open an existing index.
string indexFolder = @"c:\MyIndex\";
Index index = new Index(indexFolder);
See Also