Skip to content

Commit

Permalink
fix(specs): Separators are non-alphanumeric characters (#3978)
Browse files Browse the repository at this point in the history
Co-authored-by: Gary Conroy <gary.conroy@LON-M3P-GConroy.local>
  • Loading branch information
gazconroy and Gary Conroy authored Oct 16, 2024
1 parent 030e4ce commit 1a9b95e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions specs/common/schemas/IndexSettings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,15 @@ baseIndexSettings:
type: string
example: +#
description: |
Controls which separators are indexed.
Control which non-alphanumeric characters are indexed.
By default, Algolia ignores [non-alphanumeric characters](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/how-to/how-to-search-in-hyphenated-attributes/#handling-non-alphanumeric-characters) like hyphen (`-`), plus (`+`), and parentheses (`(`,`)`).
To include such characters, define them with `separatorsToIndex`.
Separators are all non-letter characters except spaces and currency characters, such as $€£¥.
By default, separator characters aren't indexed.
With `separatorsToIndex`, Algolia treats separator characters as separate words.
For example, a search for `C#` would report two matches.
For example, in a search for "Disney+", Algolia considers "Disney" and "+" as two separate words.
default: ''
x-categories:
- Typos
Expand Down

0 comments on commit 1a9b95e

Please sign in to comment.