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 minWordSizefor2Typos parameter sets the minimum length a query word must have before Algolia allows two typos in that word. Query words shorter than this setting can only have up to one typo. Lowering this setting can lead to more matches, but might include more irrelevant results for short queries. To learn more, see Configure typo tolerance word size.

Examples

Set the default minimum character count to allow two typos

Current API clients

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

index.SetSettings(settings);

Current API clients

var response = await client.SearchSingleIndexAsync<Hit>(
  "INDEX_NAME",
  new SearchParams(new SearchParamsObject { Query = "query", MinWordSizefor2Typos = 2 })
);
index.Search(new Query("query")
{
    MinWordSizefor2Typos = 2
});
Last modified on May 19, 2026