Skip to content

Commit 8646f96

Browse files
committed
Add IcuCollationProperty
1 parent 6fdb2c2 commit 8646f96

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

specification/_types/mapping/Property.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ import {
6060
ConstantKeywordProperty,
6161
FieldAliasProperty,
6262
HistogramProperty,
63+
IcuCollationProperty,
6364
IpProperty,
6465
Murmur3HashProperty,
6566
TokenCountProperty
@@ -157,6 +158,9 @@ export type Property =
157158
| IpRangeProperty
158159
| LongRangeProperty
159160

161+
// plugins
162+
| IcuCollationProperty
163+
160164
export enum FieldType {
161165
none,
162166
geo_point,
@@ -201,7 +205,8 @@ export enum FieldType {
201205
aggregate_metric_double,
202206
dense_vector,
203207
sparse_vector,
204-
match_only_text
208+
match_only_text,
209+
icu_collation_keyword
205210
}
206211

207212
export class PropertyWithClrOrigin {}

specification/_types/mapping/specialized.ts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ import { double, integer } from '@_types/Numeric'
2323
import { DocValuesPropertyBase, IndexOptions, OnScriptError } from './core'
2424
import { PropertyBase } from './Property'
2525
import { Script } from '@_types/Scripting'
26+
import {
27+
IcuCollationAlternate,
28+
IcuCollationCaseFirst,
29+
IcuCollationDecomposition,
30+
IcuCollationStrength
31+
} from '@_types/analysis/icu-plugin'
2632

2733
export class CompletionProperty extends DocValuesPropertyBase {
2834
analyzer?: string
@@ -84,3 +90,32 @@ export class TokenCountProperty extends DocValuesPropertyBase {
8490
enable_position_increments?: boolean
8591
type: 'token_count'
8692
}
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+
}

0 commit comments

Comments
 (0)