IndexRepositoryCreate Method (IndexSettings)
Creates a new index in memory.

Namespace: GroupDocs.Search
Assembly: GroupDocs.Search (in GroupDocs.Search.dll) Version: 20.8
Syntax
public Index Create(
	IndexSettings settings
)

Parameters

settings
Type: GroupDocs.SearchIndexSettings
The index settings.

Return Value

Type: Index
The created index.
Examples
The example demonstrates how to create an index in memory through the index repository.
C#
IndexRepository indexRepository = new IndexRepository();

IndexSettings settings = new IndexSettings();
settings.UseStopWords = false; // Disabling use of stop words during indexing

Index index = indexRepository.Create(settings);
See Also