TextStorageSettings
IndexSettings.TextStorageSettings property
Gets or sets the text storage settings. The default value is null
, which means that document texts are not stored.
public TextStorageSettings TextStorageSettings { get; set; }
Property Value
The text storage settings.
Examples
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
index.Add(documentsFolder);
// Searching
SearchResult result = index.Search("Einstein");
See Also
- class TextStorageSettings
- class IndexSettings
- namespace GroupDocs.Search
- assembly GroupDocs.Search