File tree Expand file tree Collapse file tree 2 files changed +41
-1
lines changed
specification/_types/mapping Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ import {
60
60
ConstantKeywordProperty ,
61
61
FieldAliasProperty ,
62
62
HistogramProperty ,
63
+ IcuCollationProperty ,
63
64
IpProperty ,
64
65
Murmur3HashProperty ,
65
66
TokenCountProperty
@@ -157,6 +158,9 @@ export type Property =
157
158
| IpRangeProperty
158
159
| LongRangeProperty
159
160
161
+ // plugins
162
+ | IcuCollationProperty
163
+
160
164
export enum FieldType {
161
165
none ,
162
166
geo_point ,
@@ -201,7 +205,8 @@ export enum FieldType {
201
205
aggregate_metric_double ,
202
206
dense_vector ,
203
207
sparse_vector ,
204
- match_only_text
208
+ match_only_text ,
209
+ icu_collation_keyword
205
210
}
206
211
207
212
export class PropertyWithClrOrigin { }
Original file line number Diff line number Diff line change @@ -23,6 +23,12 @@ import { double, integer } from '@_types/Numeric'
23
23
import { DocValuesPropertyBase , IndexOptions , OnScriptError } from './core'
24
24
import { PropertyBase } from './Property'
25
25
import { Script } from '@_types/Scripting'
26
+ import {
27
+ IcuCollationAlternate ,
28
+ IcuCollationCaseFirst ,
29
+ IcuCollationDecomposition ,
30
+ IcuCollationStrength
31
+ } from '@_types/analysis/icu-plugin'
26
32
27
33
export class CompletionProperty extends DocValuesPropertyBase {
28
34
analyzer ?: string
@@ -84,3 +90,32 @@ export class TokenCountProperty extends DocValuesPropertyBase {
84
90
enable_position_increments ?: boolean
85
91
type : 'token_count'
86
92
}
93
+
94
+ export class IcuCollationProperty extends DocValuesPropertyBase {
95
+ type : 'icu_collation_keyword'
96
+ /**
97
+ * Should the field be searchable?
98
+ */
99
+ index ?: boolean
100
+ /**
101
+ * Accepts a string value which is substituted for any explicit null values. Defaults to null, which means the field is treated as missing.
102
+ */
103
+ null_value ?: string
104
+ /**
105
+ * Whether the field value should be stored and retrievable separately from the `_source` field.
106
+ */
107
+ store ?: boolean
108
+
109
+ rules ?: string
110
+ language ?: string
111
+ country ?: string
112
+ variant ?: string
113
+ strength ?: IcuCollationStrength
114
+ decomposition ?: IcuCollationDecomposition
115
+ alternate ?: IcuCollationAlternate
116
+ case_level ?: boolean
117
+ case_first ?: IcuCollationCaseFirst
118
+ numeric ?: boolean
119
+ variable_top ?: string
120
+ hiragana_quaternary_mode ?: boolean
121
+ }
You can’t perform that action at this time.
0 commit comments