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: 20.8
Syntax
public TextStorageSettings TextStorageSettings { get; set; }

Property Value

Type: TextStorageSettings
The text storage settings.
Examples
The example demonstrates how to set the text storage settings.
C#
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
index.Add(documentsFolder);

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