You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: specs/common/schemas/IndexSettings.yml
+86-14Lines changed: 86 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -132,7 +132,7 @@ baseIndexSettings:
132
132
type: array
133
133
items:
134
134
type: string
135
-
example: ['description']
135
+
example: [description]
136
136
description: Attributes for which to split [camel case](https://wikipedia.org/wiki/Camel_case) words.
137
137
default: []
138
138
x-categories:
@@ -158,11 +158,11 @@ baseIndexSettings:
158
158
indexLanguages:
159
159
type: array
160
160
items:
161
-
type: string
161
+
$ref: '#/supportedLanguage'
162
162
example:
163
163
- ja
164
164
description: |
165
-
[ISO code](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) for a language for language-specific processing steps, such as word detection and dictionary settings.
165
+
Languages for language-specific processing steps, such as word detection and dictionary settings.
166
166
167
167
**You should always specify an indexing language.**
168
168
If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/),
[ISO code](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) for language-specific settings such as plurals, stop words, and word-detection dictionaries.
526
+
Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries.
527
527
528
528
This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings.
529
529
This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages.
530
530
To support this, you must place the CJK language **first**.
531
531
532
-
533
532
**You should always specify a query language.**
534
533
If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/),
535
534
or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters.
@@ -979,14 +978,14 @@ ignorePlurals:
979
978
description: |
980
979
Treat singular, plurals, and other forms of declensions as equivalent.
981
980
You should only use this feature for the languages used in your index.
982
-
example: ['ca', 'es']
981
+
example: [ca, es]
983
982
oneOf:
984
983
- type: array
984
+
description: |
985
+
ISO code for languages for which this feature should be active.
986
+
This overrides languages you set with `queryLanguages`.
985
987
items:
986
-
type: string
987
-
description: |
988
-
ISO code for languages for which this feature should be active.
989
-
This overrides languages you set with `queryLanguages`.
988
+
$ref: '#/supportedLanguage'
990
989
- type: boolean
991
990
description: |
992
991
If true, `ignorePlurals` is active for all languages included in `queryLanguages`, or for all supported languages, if `queryLanguges` is empty.
@@ -1003,12 +1002,12 @@ removeStopWords:
1003
1002
In English, "the", "a", or "and" are stop words.
1004
1003
1005
1004
You should only use this feature for the languages used in your index.
1006
-
example: ['ca', 'es']
1005
+
example: [ca, es]
1007
1006
oneOf:
1008
1007
- type: array
1008
+
description: ISO code for languages for which stop words should be removed. This overrides languages you set in `queryLanguges`.
1009
1009
items:
1010
-
type: string
1011
-
description: ISO code for languages for which stop words should be removed. This overrides languages you set in `queryLanguges`.
Copy file name to clipboardExpand all lines: specs/search/paths/dictionaries/common/parameters.yml
-6Lines changed: 0 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -11,12 +11,6 @@ dictionaryType:
11
11
type: string
12
12
enum: [plurals, stopwords, compounds]
13
13
14
-
# misc
15
-
language:
16
-
description: ISO code of a [supported language](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/).
17
-
example: en
18
-
type: string
19
-
20
14
standardEntries:
21
15
description: |
22
16
Key-value pairs of [supported language ISO codes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/) and boolean values.
Copy file name to clipboardExpand all lines: specs/search/paths/dictionaries/common/schemas/SearchDictionaryEntriesResponse.yml
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -32,9 +32,7 @@ dictionaryEntry:
32
32
description: Unique identifier for the dictionary entry.
33
33
example: 828afd405e1f4fe950b6b98c2c43c032
34
34
language:
35
-
type: string
36
-
description: ISO code of a [supported language](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/).
Copy file name to clipboardExpand all lines: templates/kotlin/oneof_interface.mustache
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ internal class {{classname}}Serializer : JsonContentPolymorphicSerializer<{{clas
73
73
element is JsonObject -> {{classname}}.{{#lambda.type-to-name}}{{{datatypeWithEnum}}}{{/lambda.type-to-name}}Value.serializer()
74
74
{{/isMap}}
75
75
{{#isArray}}
76
-
element{{#items}}{{#isModel}}.isJsonArrayOfObjects{{/isModel}}{{#isPrimitiveType}}.isJsonArrayOfPrimitives{{/isPrimitiveType}}{{#isModel}}{{#isPrimitiveType}} is JsonArray{{/isPrimitiveType}}{{/isModel}}{{/items}} -> {{{classname}}}.{{#lambda.type-to-name}}{{{datatypeWithEnum}}}{{/lambda.type-to-name}}Value.serializer()
76
+
element{{#items}}{{#isModel}}.isJsonArrayOfObjects{{/isModel}}{{#isPrimitiveType}}.isJsonArrayOfPrimitives{{/isPrimitiveType}}{{^isModel}}{{^isPrimitiveType}} is JsonArray{{/isPrimitiveType}}{{/isModel}}{{/items}} -> {{{classname}}}.{{#lambda.type-to-name}}{{{datatypeWithEnum}}}{{/lambda.type-to-name}}Value.serializer()
0 commit comments