Documentation Index
Fetch the complete documentation index at: https://algolia.com/llms.txt
Use this file to discover all available pages before exploring further.
Options
Only items that at least partialy matched are highlighted and snippeted.
All items are highlighted and snippeted.
Examples
Set default value
var response = await client.SetSettingsAsync(
"INDEX_NAME",
new IndexSettings { RestrictHighlightAndSnippetArrays = true }
);
IndexSettings settings = new IndexSettings()
settings.RestrictHighlightAndSnippetArrays = true;
index.SetSettings(settings);
Override for the current search
var response = await client.SearchSingleIndexAsync<Hit>(
"INDEX_NAME",
new SearchParams(
new SearchParamsObject { Query = "query", RestrictHighlightAndSnippetArrays = false }
)
);
index.Search(new Query("query")
{
RestrictHighlightAndSnippetArrays = false
});