IndexRepositoryCreate Method (IndexSettings) |
Creates a new index in memory.
Namespace: GroupDocs.SearchAssembly: GroupDocs.Search (in GroupDocs.Search.dll) Version: 20.11
Syntaxpublic Index Create(
IndexSettings settings
)
Public Function Create (
settings As IndexSettings
) As Index
public:
Index^ Create(
IndexSettings^ settings
)
member Create :
settings : IndexSettings -> Index
Parameters
- settings
- Type: GroupDocs.SearchIndexSettings
The index settings.
Return Value
Type:
IndexThe created index.
Examples
The example demonstrates how to create an index in memory through the index repository.
IndexRepository indexRepository = new IndexRepository();
IndexSettings settings = new IndexSettings();
settings.UseStopWords = false;
Index index = indexRepository.Create(settings);
See Also