Skip to content

Commit 8b879de

Browse files
gazconroyGary Conroy
and
Gary Conroy
authored
fix(specs): alternativesAsExact is plurals and synonyms (#3974)
Co-authored-by: Gary Conroy <[email protected]>
1 parent cd7c432 commit 8b879de

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

specs/common/schemas/IndexSettings.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -618,16 +618,22 @@ indexSettingsAsSearchParams:
618618
items:
619619
$ref: '#/alternativesAsExact'
620620
description: |
621-
Alternatives of query words that should be considered as exact matches by the Exact ranking criterion.
621+
Determine which plurals and synonyms should be considered an exact matches.
622+
623+
By default, Algolia treats singular and plural forms of a word, and single-word synonyms, as [exact](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#exact) matches when searching.
624+
For example:
625+
626+
- "swimsuit" and "swimsuits" are treated the same
627+
- "swimsuit" and "swimwear" are treated the same (if they are [synonyms](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/#regular-synonyms)).
622628
623629
- `ignorePlurals`.
624630
Plurals and similar declensions added by the `ignorePlurals` setting are considered exact matches.
625631
626632
- `singleWordSynonym`.
627-
Single-word synonyms, such as "NY/NYC" are considered exact matches.
633+
Single-word synonyms, such as "NY" = "NYC", are considered exact matches.
628634
629635
- `multiWordsSynonym`.
630-
Multi-word synonyms, such as "NY/New York" are considered exact matches.
636+
Multi-word synonyms, such as "NY" = "New York", are considered exact matches.
631637
default: [ignorePlurals, singleWordSynonym]
632638
x-categories:
633639
- Query strategy

0 commit comments

Comments
 (0)