I have a query that aims to return just the specified nested fields.
GET data/_search?pretty
{
"_source":false,
"query": {
"nested":{
"path":"fields",
"query":{
"match":{"fields.fieldId":"fdtElem7"}
},
"inner_hits":{}
}
}
}
This works perfectly and returns just the nested field I want. But what I really need is to return more than one nested field. So say I require 2 nested fields returned, one with id "fdtElem7" and another with id: "fdtElem144", how would I amend my query to allow this? (I've tried a lot of different things, bool etc that haven't worked.)