1
1
setup :
2
2
3
3
- requires :
4
- cluster_features : ["gte_v7.14.0"]
4
+ cluster_features : [ "gte_v7.14.0" ]
5
5
reason : " match_only_text was added in 7.14"
6
6
7
7
- do :
8
8
indices.create :
9
- index : test
9
+ index : test
10
10
body :
11
11
mappings :
12
12
properties :
@@ -16,29 +16,29 @@ setup:
16
16
- do :
17
17
index :
18
18
index : test
19
- id : " 1"
20
- body : { }
19
+ id : " 1"
20
+ body : { }
21
21
22
22
- do :
23
23
index :
24
24
index : test
25
- id : " 2"
26
- body : { "foo": "Apache Lucene powers Elasticsearch" }
25
+ id : " 2"
26
+ body : { "foo": "Apache Lucene powers Elasticsearch" }
27
27
28
28
- do :
29
29
index :
30
30
index : test
31
- id : " 3"
32
- body : { "foo": "Elasticsearch is based on Apache Lucene" }
31
+ id : " 3"
32
+ body : { "foo": "Elasticsearch is based on Apache Lucene" }
33
33
34
34
- do :
35
35
index :
36
36
index : test
37
- id : " 4"
38
- body : { "foo": "The Apache Software Foundation manages many projects including Lucene" }
37
+ id : " 4"
38
+ body : { "foo": "The Apache Software Foundation manages many projects including Lucene" }
39
39
40
40
- do :
41
- indices.refresh : {}
41
+ indices.refresh : { }
42
42
43
43
---
44
44
" Field caps " :
@@ -257,7 +257,7 @@ setup:
257
257
" Wildcard highlighting " :
258
258
259
259
- requires :
260
- cluster_features : ["gte_v8.3.0"]
260
+ cluster_features : [ "gte_v8.3.0" ]
261
261
reason : " Wildcard highlighting on match_only_text was fixed in 8.3"
262
262
263
263
- do :
@@ -269,7 +269,7 @@ setup:
269
269
foo : " many"
270
270
highlight :
271
271
fields :
272
- " * " : {}
272
+ " * " : { }
273
273
274
274
- match : { hits.total.value: 1 }
275
275
- match : { hits.hits.0._source.foo: "The Apache Software Foundation manages many projects including Lucene" }
@@ -296,7 +296,7 @@ synthetic_source:
296
296
- do :
297
297
index :
298
298
index : synthetic_source_test
299
- id : " 1"
299
+ id : " 1"
300
300
refresh : true
301
301
body :
302
302
foo : " Apache Lucene powers Elasticsearch"
@@ -312,7 +312,7 @@ synthetic_source:
312
312
---
313
313
tsdb :
314
314
- requires :
315
- cluster_features : ["gte_v8.10.0"]
315
+ cluster_features : [ "gte_v8.10.0" ]
316
316
reason : bug fixed in 8.10.0
317
317
318
318
- do :
@@ -349,8 +349,8 @@ tsdb:
349
349
- match : { "hits.total.value": 1 }
350
350
- match :
351
351
hits.hits.0._source :
352
- " @timestamp" : "2000-01-01T00:00:00.000Z"
353
- " dimension" : "a"
352
+ " @timestamp " : " 2000-01-01T00:00:00.000Z"
353
+ " dimension " : " a"
354
354
foo : " Apache Lucene powers Elasticsearch"
355
355
356
356
---
@@ -377,7 +377,7 @@ synthetic_source with copy_to:
377
377
- do :
378
378
index :
379
379
index : synthetic_source_test
380
- id : " 1"
380
+ id : " 1"
381
381
refresh : true
382
382
body :
383
383
foo : " Apache Lucene powers Elasticsearch"
@@ -386,7 +386,7 @@ synthetic_source with copy_to:
386
386
search :
387
387
index : synthetic_source_test
388
388
body :
389
- fields : ["copy"]
389
+ fields : [ "copy" ]
390
390
391
391
- match : { "hits.total.value": 1 }
392
392
- match :
@@ -418,7 +418,7 @@ synthetic_source match_only_text as multi-field:
418
418
- do :
419
419
index :
420
420
index : synthetic_source_test
421
- id : " 1"
421
+ id : " 1"
422
422
refresh : true
423
423
body :
424
424
foo : " Apache Lucene powers Elasticsearch"
@@ -464,14 +464,6 @@ synthetic_source match_only_text as multi-field with ignored keyword as parent:
464
464
index : synthetic_source_test
465
465
id : " 1"
466
466
refresh : true
467
- body :
468
- foo : " Apache Lucene powers Elasticsearch"
469
-
470
- - do :
471
- index :
472
- index : synthetic_source_test
473
- id : " 2"
474
- refresh : true
475
467
body :
476
468
foo : [ "Apache Lucene powers Elasticsearch", "Apache" ]
477
469
@@ -485,9 +477,7 @@ synthetic_source match_only_text as multi-field with ignored keyword as parent:
485
477
486
478
- match : { "hits.total.value": 2 }
487
479
- match :
488
- hits.hits.0._source.foo : " Apache Lucene powers Elasticsearch"
489
- - match :
490
- hits.hits.1._source.foo : [ "Apache", "Apache Lucene powers Elasticsearch" ]
480
+ hits.hits.0._source.foo : [ "Apache", "Apache Lucene powers Elasticsearch" ]
491
481
492
482
---
493
483
synthetic_source match_only_text as multi-field with stored keyword as parent :
@@ -515,7 +505,7 @@ synthetic_source match_only_text as multi-field with stored keyword as parent:
515
505
- do :
516
506
index :
517
507
index : synthetic_source_test
518
- id : " 1"
508
+ id : " 1"
519
509
refresh : true
520
510
body :
521
511
foo : " Apache Lucene powers Elasticsearch"
@@ -599,7 +589,7 @@ synthetic_source match_only_text with multi-field:
599
589
- do :
600
590
index :
601
591
index : synthetic_source_test
602
- id : " 1"
592
+ id : " 1"
603
593
refresh : true
604
594
body :
605
595
foo : " Apache Lucene powers Elasticsearch"
@@ -686,7 +676,7 @@ synthetic_source match_only_text with stored multi-field:
686
676
- do :
687
677
index :
688
678
index : synthetic_source_test
689
- id : " 1"
679
+ id : " 1"
690
680
refresh : true
691
681
body :
692
682
foo : " Apache Lucene powers Elasticsearch"
0 commit comments