Skip to main content

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

true
Only items that at least partialy matched are highlighted and snippeted.
false
All items are highlighted and snippeted.

Examples

Set default value

Current API clients

var response = await client.SetSettingsAsync(
  "INDEX_NAME",
  new IndexSettings { RestrictHighlightAndSnippetArrays = true }
);
IndexSettings settings = new IndexSettings()
settings.RestrictHighlightAndSnippetArrays = true;

index.SetSettings(settings);

Current API clients

var response = await client.SearchSingleIndexAsync<Hit>(
  "INDEX_NAME",
  new SearchParams(
    new SearchParamsObject { Query = "query", RestrictHighlightAndSnippetArrays = false }
  )
);
index.Search(new Query("query")
{
    RestrictHighlightAndSnippetArrays = false
});
Last modified on March 23, 2026