Skip to main content
By default, Algolia ignores non-alphanumeric characters such as hyphens (-), plus signs (+), or parentheses ((, )). Use the separatorsToIndex parameter to define specific characters that should be treated as searchable tokens.

Usage

  • Separators must be non-letter characters: !, #, (, ), [, ], {, }, *, +, -, _, , :, ;, <, >, ?, @, /, \, ^, |, %, &, ~, §, `, ", ', , , , , ,
  • Separators may not be spaces or currency characters, such as $€£¥
  • Algolia treats separator characters as separate words. For example, in a search for “Disney+”, Algolia considers “Disney” and ”+” as two separate words, and counts as a match on two words in getRankingInfo.

Example

Current API clients

var response = await client.SetSettingsAsync(
  "ALGOLIA_INDEX_NAME",
  new IndexSettings { SeparatorsToIndex = "+#" }
);
IndexSettings settings = new IndexSettings();
settings.SeparatorsToIndex = "+#";

index.SetSettings(settings);
I