The simplified query below works
GET contacts/_search
{
"query": {
"bool": {
"should": [
{"nested": {
"path": "organisation",
"query": {
"bool": {
"should": [
{"multi_match": {
"query": "te",
"fields": ["organisation.name"],
"type": "best_fields"
}},
{"nested": {
"path": "screenData",
"query": {
"multi_match": {
"query": "advertising",
"fields": ["screenData.valueString"],
"type": "best_fields"
}
}
}}
]
}
}
}
}]
}
}
}
but a wildcarded equivalent doesn't..
GET contacts/_search
{
"query": {
"bool": {
"should": [
{"nested": {
"path": "organisation",
"query": {
"bool": {
"should": [
{"multi_match": {
"query": "te",
"fields": ["organisation.name"],
"type": "best_fields"
}},
{"nested": {
"path": "screenData",
"query": {
"multi_match": {
"query": "advertis*",
"fields": ["screenData.valueString"],
"type": "best_fields"
}
}
}}
]
}
}
}
}]
}
}
}
I have the screenData.valueString field analysed with the english analyser but have tried standard and not_analysed with the same results: no records.