Skip to content

Commit 1a9b95e

Browse files
gazconroyGary Conroy
and
Gary Conroy
authored
fix(specs): Separators are non-alphanumeric characters (#3978)
Co-authored-by: Gary Conroy <[email protected]>
1 parent 030e4ce commit 1a9b95e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

specs/common/schemas/IndexSettings.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,15 @@ baseIndexSettings:
212212
type: string
213213
example: +#
214214
description: |
215-
Controls which separators are indexed.
215+
Control which non-alphanumeric characters are indexed.
216+
217+
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 (`(`,`)`).
218+
To include such characters, define them with `separatorsToIndex`.
216219
217220
Separators are all non-letter characters except spaces and currency characters, such as $€£¥.
218-
By default, separator characters aren't indexed.
221+
219222
With `separatorsToIndex`, Algolia treats separator characters as separate words.
220-
For example, a search for `C#` would report two matches.
223+
For example, in a search for "Disney+", Algolia considers "Disney" and "+" as two separate words.
221224
default: ''
222225
x-categories:
223226
- Typos

0 commit comments

Comments
 (0)