PHRAS-2497 #comment port to 4.1 Search issue when query mix data from Public and Private field

#time 2h
This commit is contained in:
aina-esokia
2019-04-23 12:10:25 +04:00
parent 44fb25912b
commit 47d974a466
8 changed files with 50 additions and 20 deletions

View File

@@ -109,7 +109,12 @@ class TextNodeTest extends \PHPUnit_Framework_TestCase
},
"query": {
"multi_match": {
"fields": ["private_caption.bar.fr", "private_caption.bar.en"],
"fields": [
"private_caption.bar.fr",
"private_caption.bar.en",
"foo.fr",
"foo.en"
],
"query": "baz",
"type": "cross_fields",
"operator": "and",
@@ -216,7 +221,12 @@ class TextNodeTest extends \PHPUnit_Framework_TestCase
"bool": {
"should": [{
"multi_match": {
"fields": ["private_caption.bar.fr", "private_caption.bar.en"],
"fields": [
"private_caption.bar.fr",
"private_caption.bar.en",
"foo.fr",
"foo.en"
],
"query": "baz",
"type": "cross_fields",
"operator": "and",
@@ -224,7 +234,10 @@ class TextNodeTest extends \PHPUnit_Framework_TestCase
}
}, {
"multi_match": {
"fields": ["concept_path.bar"],
"fields": [
"concept_path.bar",
"concept_path.foo"
],
"query": "/qux"
}
}]