IndexSettingsTextStorageSettings Property
Gets or sets the text storage settings. The default value is null, which means that document texts are not stored.

Namespace: GroupDocs.Search
Assembly: GroupDocs.Search (in GroupDocs.Search.dll) Version: 21.8.1
public TextStorageSettings TextStorageSettings { get; set; }

Property Value

Type: TextStorageSettings
The text storage settings.
The example demonstrates how to set the text storage settings.
string indexFolder = @"c:\MyIndex\";
string documentsFolder = @"c:\MyDocuments\";

// Creating index settings instance
IndexSettings settings = new IndexSettings();
settings.TextStorageSettings = new TextStorageSettings(Compression.High); // Setting high compression level for the index text storage

// Creating an index in the specified folder
Index index = new Index(indexFolder, settings);

// Indexing documents

// Searching
SearchResult result = index.Search("Einstein");
See Also