Create
Leave feedback
On this page
Creates a new index in memory.
public Index Create()
The created index.
The example demonstrates how to create an index in memory through the index repository.
IndexRepository indexRepository = new IndexRepository();
Index index = indexRepository.Create();
- class Index
- class IndexRepository
- namespace GroupDocs.Search
- assembly GroupDocs.Search
Creates a new index in memory.
public Index Create(IndexSettings settings)
| Parameter | Type | Description |
|---|---|---|
| settings | IndexSettings | The index settings. |
The created index.
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; // Disabling use of stop words during indexing
Index index = indexRepository.Create(settings);
- class Index
- class IndexSettings
- class IndexRepository
- namespace GroupDocs.Search
- assembly GroupDocs.Search
Creates a new index on disk. The index folder will be cleaned before the index creation.
public Index Create(string indexFolder)
| Parameter | Type | Description |
|---|---|---|
| indexFolder | String | The index folder. |
The created index.
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);
- class Index
- class IndexRepository
- namespace GroupDocs.Search
- assembly GroupDocs.Search
Creates a new index on disk. The index folder will be cleaned before the index creation.
public Index Create(string indexFolder, IndexSettings settings)
| Parameter | Type | Description |
|---|---|---|
| indexFolder | String | The index folder. |
| settings | IndexSettings | The index settings. |
The created index.
The example demonstrates how to create an index on disk through the index repository.
string indexFolder = @"c:\MyIndex\";
IndexRepository indexRepository = new IndexRepository();
IndexSettings settings = new IndexSettings();
settings.UseStopWords = false; // Disabling use of stop words during indexing
Index index = indexRepository.Create(indexFolder, settings);
- class Index
- class IndexSettings
- class IndexRepository
- namespace GroupDocs.Search
- assembly GroupDocs.Search
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.