Having a data like this: { "id" : 22, "name" : "test", "tagIds" : [ 2, 35, 56, 59 ] }, how is it possible to search for both name and tags?
Using following query:
{
"from": 0,
"size": 100,
"query": {
"terms": {
"tagIds": [
35
]
},
"multi_match": {
"query": "test",
"fields": [
"name"
]
}
}
}
Gets this parsing exception: [terms] malformed query, expected [END_OBJECT] but found [FIELD_NAME]
How to write this correctly in fluent nest?