Skip to content

Commit 9d7b956

Browse files
committed
Add multi-valued test
1 parent 434c134 commit 9d7b956

File tree

1 file changed

+11
-1
lines changed
  • modules/mapper-extras/src/yamlRestTest/resources/rest-api-spec/test/match_only_text

1 file changed

+11
-1
lines changed

modules/mapper-extras/src/yamlRestTest/resources/rest-api-spec/test/match_only_text/10_basic.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,14 @@ synthetic_source match_only_text as multi-field with ignored keyword as parent:
467467
body:
468468
foo: "Apache Lucene powers Elasticsearch"
469469

470+
- do:
471+
index:
472+
index: synthetic_source_test
473+
id: "2"
474+
refresh: true
475+
body:
476+
foo: [ "Apache Lucene powers Elasticsearch", "Apache" ]
477+
470478
- do:
471479
search:
472480
index: synthetic_source_test
@@ -475,9 +483,11 @@ synthetic_source match_only_text as multi-field with ignored keyword as parent:
475483
match_phrase:
476484
foo.text: apache lucene
477485

478-
- match: { "hits.total.value": 1 }
486+
- match: { "hits.total.value": 2 }
479487
- match:
480488
hits.hits.0._source.foo: "Apache Lucene powers Elasticsearch"
489+
- match:
490+
hits.hits.1._source.foo: [ "Apache", "Apache Lucene powers Elasticsearch" ]
481491

482492
---
483493
synthetic_source match_only_text as multi-field with stored keyword as parent:

0 commit comments

Comments
 (0)