File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff 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---
483493synthetic_source match_only_text as multi-field with stored keyword as parent :
You can’t perform that action at this time.
0 commit comments