I have a nested query like this
{
"fields" : ["title","wordCount"],
"query":{
"bool":{
"should":[
{
"match":{
"title":{
"query": searchTerm,
"operator": "and"
}
}
},
{
"match_phrase" :{
"postHtml":{
"query" : searchTerm,
"slop" : 1
}
}
},
{
"match":{
"caption" : searchTerm
}
}
]
}
}
}
Is there a way know if there is a match on caption or postHtml?