IndexRepositoryCreate Method (String) |
Creates a new index on disk.
The index folder will be cleaned before the index creation.
Namespace: GroupDocs.SearchAssembly: GroupDocs.Search (in GroupDocs.Search.dll) Version: 21.8.1
Syntaxpublic Index Create(
string indexFolder
)
Public Function Create (
indexFolder As String
) As Index
public:
Index^ Create(
String^ indexFolder
)
member Create :
indexFolder : string -> Index
Parameters
- indexFolder
- Type: SystemString
The index folder.
Return Value
Type:
IndexThe created index.
Examples
The example demonstrates how to create an index on disk through the index repository.
string indexFolder = @"c:\MyIndex\";
IndexRepository indexRepository = new IndexRepository();
Index index = indexRepository.Create(indexFolder);
See Also