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.

The allowTyposOnNumericTokens parameter controls whether Algolia applies typo tolerance to numbers. Allowing typos can broaden results but may lead to irrelevant matches. Turning typo tolerance off on numbers helps enforce precision, especially for data like:
  • Postal or product codes
  • Identifiers
  • Phone numbers
For more information, see typo tolerance and numbers.

Examples

Turn off typos on numbers by default

Current API clients

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

index.SetSettings(settings);

Current API clients

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