Skip to content

Commit f61766f

Browse files
committed
Add missing supported field types for mappings
Fixes #1345 Signed-off-by: Romain Tartière <romain@blogreen.org>
1 parent 4d75287 commit f61766f

3 files changed

Lines changed: 325 additions & 0 deletions

File tree

public/components/IndexMapping/__snapshots__/IndexMapping.test.tsx.snap

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,16 +199,31 @@ exports[`<IndexMapping /> spec render mappings with object type 1`] = `
199199
>
200200
binary
201201
</option>
202+
<option
203+
value="byte"
204+
>
205+
byte
206+
</option>
202207
<option
203208
value="completion"
204209
>
205210
completion
206211
</option>
212+
<option
213+
value="constant_keyword"
214+
>
215+
constant_keyword
216+
</option>
207217
<option
208218
value="date"
209219
>
210220
date
211221
</option>
222+
<option
223+
value="date_nanos"
224+
>
225+
date_nanos
226+
</option>
212227
<option
213228
value="date_range"
214229
>
@@ -224,11 +239,21 @@ exports[`<IndexMapping /> spec render mappings with object type 1`] = `
224239
>
225240
double_range
226241
</option>
242+
<option
243+
value="flat_object"
244+
>
245+
flat_object
246+
</option>
227247
<option
228248
value="float"
229249
>
230250
float
231251
</option>
252+
<option
253+
value="float_range"
254+
>
255+
float_range
256+
</option>
232257
<option
233258
value="geo_point"
234259
>
@@ -249,6 +274,11 @@ exports[`<IndexMapping /> spec render mappings with object type 1`] = `
249274
>
250275
integer
251276
</option>
277+
<option
278+
value="integer_range"
279+
>
280+
integer_range
281+
</option>
252282
<option
253283
value="ip"
254284
>
@@ -259,11 +289,21 @@ exports[`<IndexMapping /> spec render mappings with object type 1`] = `
259289
>
260290
ip_range
261291
</option>
292+
<option
293+
value="join"
294+
>
295+
join
296+
</option>
262297
<option
263298
value="keyword"
264299
>
265300
keyword
266301
</option>
302+
<option
303+
value="knn_vector"
304+
>
305+
knn_vector
306+
</option>
267307
<option
268308
value="long"
269309
>
@@ -274,6 +314,16 @@ exports[`<IndexMapping /> spec render mappings with object type 1`] = `
274314
>
275315
long_range
276316
</option>
317+
<option
318+
value="match_only_text"
319+
>
320+
match_only_text
321+
</option>
322+
<option
323+
value="nested"
324+
>
325+
nested
326+
</option>
277327
<option
278328
value="object"
279329
>
@@ -294,11 +344,31 @@ exports[`<IndexMapping /> spec render mappings with object type 1`] = `
294344
>
295345
rank_features
296346
</option>
347+
<option
348+
value="scaled_float"
349+
>
350+
scaled_float
351+
</option>
297352
<option
298353
value="search_as_you_type"
299354
>
300355
search_as_you_type
301356
</option>
357+
<option
358+
value="semantic"
359+
>
360+
semantic
361+
</option>
362+
<option
363+
value="short"
364+
>
365+
short
366+
</option>
367+
<option
368+
value="star_tree"
369+
>
370+
star_tree
371+
</option>
302372
<option
303373
value="text"
304374
>
@@ -309,6 +379,26 @@ exports[`<IndexMapping /> spec render mappings with object type 1`] = `
309379
>
310380
token_count
311381
</option>
382+
<option
383+
value="unsigned_long"
384+
>
385+
unsigned_long
386+
</option>
387+
<option
388+
value="xy_point"
389+
>
390+
xy_point
391+
</option>
392+
<option
393+
value="xy_shape"
394+
>
395+
xy_shape
396+
</option>
397+
<option
398+
value="wildcard"
399+
>
400+
wildcard
401+
</option>
312402
</select>
313403
<div
314404
class="euiFormControlLayoutIcons euiFormControlLayoutIcons--right"
@@ -507,16 +597,31 @@ exports[`<IndexMapping /> spec render mappings with object type 1`] = `
507597
>
508598
binary
509599
</option>
600+
<option
601+
value="byte"
602+
>
603+
byte
604+
</option>
510605
<option
511606
value="completion"
512607
>
513608
completion
514609
</option>
610+
<option
611+
value="constant_keyword"
612+
>
613+
constant_keyword
614+
</option>
515615
<option
516616
value="date"
517617
>
518618
date
519619
</option>
620+
<option
621+
value="date_nanos"
622+
>
623+
date_nanos
624+
</option>
520625
<option
521626
value="date_range"
522627
>
@@ -532,11 +637,21 @@ exports[`<IndexMapping /> spec render mappings with object type 1`] = `
532637
>
533638
double_range
534639
</option>
640+
<option
641+
value="flat_object"
642+
>
643+
flat_object
644+
</option>
535645
<option
536646
value="float"
537647
>
538648
float
539649
</option>
650+
<option
651+
value="float_range"
652+
>
653+
float_range
654+
</option>
540655
<option
541656
value="geo_point"
542657
>
@@ -557,6 +672,11 @@ exports[`<IndexMapping /> spec render mappings with object type 1`] = `
557672
>
558673
integer
559674
</option>
675+
<option
676+
value="integer_range"
677+
>
678+
integer_range
679+
</option>
560680
<option
561681
value="ip"
562682
>
@@ -567,11 +687,21 @@ exports[`<IndexMapping /> spec render mappings with object type 1`] = `
567687
>
568688
ip_range
569689
</option>
690+
<option
691+
value="join"
692+
>
693+
join
694+
</option>
570695
<option
571696
value="keyword"
572697
>
573698
keyword
574699
</option>
700+
<option
701+
value="knn_vector"
702+
>
703+
knn_vector
704+
</option>
575705
<option
576706
value="long"
577707
>
@@ -582,6 +712,16 @@ exports[`<IndexMapping /> spec render mappings with object type 1`] = `
582712
>
583713
long_range
584714
</option>
715+
<option
716+
value="match_only_text"
717+
>
718+
match_only_text
719+
</option>
720+
<option
721+
value="nested"
722+
>
723+
nested
724+
</option>
585725
<option
586726
value="object"
587727
>
@@ -602,11 +742,31 @@ exports[`<IndexMapping /> spec render mappings with object type 1`] = `
602742
>
603743
rank_features
604744
</option>
745+
<option
746+
value="scaled_float"
747+
>
748+
scaled_float
749+
</option>
605750
<option
606751
value="search_as_you_type"
607752
>
608753
search_as_you_type
609754
</option>
755+
<option
756+
value="semantic"
757+
>
758+
semantic
759+
</option>
760+
<option
761+
value="short"
762+
>
763+
short
764+
</option>
765+
<option
766+
value="star_tree"
767+
>
768+
star_tree
769+
</option>
610770
<option
611771
value="text"
612772
>
@@ -617,6 +777,26 @@ exports[`<IndexMapping /> spec render mappings with object type 1`] = `
617777
>
618778
token_count
619779
</option>
780+
<option
781+
value="unsigned_long"
782+
>
783+
unsigned_long
784+
</option>
785+
<option
786+
value="xy_point"
787+
>
788+
xy_point
789+
</option>
790+
<option
791+
value="xy_shape"
792+
>
793+
xy_shape
794+
</option>
795+
<option
796+
value="wildcard"
797+
>
798+
wildcard
799+
</option>
620800
</select>
621801
<div
622802
class="euiFormControlLayoutIcons euiFormControlLayoutIcons--right"

0 commit comments

Comments
 (0)