Index Constructor (IndexSettings) |
Initializes a new instance of the
Index class in memory with particular index settings.
Namespace: GroupDocs.SearchAssembly: GroupDocs.Search (in GroupDocs.Search.dll) Version: 21.3
Syntaxpublic Index(
IndexSettings settings
)
Public Sub New (
settings As IndexSettings
)
public:
Index(
IndexSettings^ settings
)
new :
settings : IndexSettings -> Index
Parameters
- settings
- Type: GroupDocs.SearchIndexSettings
The index settings object.
Examples
The example demonstrates how to create index in memory without saving files to disk with particular index settings.
IndexSettings settings = new IndexSettings();
settings.IndexType = IndexType.CompactIndex;
Index index = new Index(settings);
See Also