Skip to content

Commit 4cefdd3

Browse files
committed
fix: typo tolerance
1 parent 20d4853 commit 4cefdd3

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

specs/common/schemas/IndexSettings.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -877,13 +877,10 @@ typoTolerance:
877877
- type: boolean
878878
default: true
879879
description: Whether typo tolerance is active. If true, matches with typos are included in the search results and rank after exact matches.
880-
- $ref: '#/typoToleranceEnum'
880+
- $ref: './SearchEnums.yml#/typoToleranceEnum'
881881
x-categories:
882882
- Typos
883883

884-
typoToleranceEnum:
885-
$ref: './SearchEnums.yml#/typoTolerance'
886-
887884
ignorePlurals:
888885
description: |
889886
Treat singular, plurals, and other forms of declensions as equivalent.

specs/common/schemas/SearchEnums.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ alternativesAsExact:
1010
x-categories:
1111
- Query strategy
1212

13-
typoTolerance:
13+
typoToleranceEnum:
1414
type: string
1515
title: typo tolerance
1616
description: |
@@ -19,4 +19,4 @@ typoTolerance:
1919
But if there are no matches without typos (with 1 typo), include matches with 1 typo (2 typos).
2020
- `strict`. Return matches with the two lowest numbers of typos.
2121
With `strict`, the Typo ranking criterion is applied first in the `ranking` setting.
22-
enum: [min, strict, 'true', 'false']
22+
enum: [min, strict, 'true', 'false']

0 commit comments

Comments
 (0)