I am new to Elasticsearch. I have a filtered query as shown below.
{ "query": { "filtered" : { "query" : { "term" : { "title" : "crime" } }, "highlight" : { "fields" : { "title" : {} } }, "filter" : { "term" : { "year" : 1961 } } } } }
When I tried this request and got an error:
[filtered] query does not support [highlight]
Is filtered query support highlighted? If not, how can I achieve filters in the query? I have to use filters.
Thank you and welcome!
source share