I need to use 2 below MUST conditions while writing the elastic search query
MUST - ("source.keyword": "SONAX1")
MUST - ("answer.keyword": "UNHANDLED")
Required fields ( Questions & timestamp & aggregation count) & SIZE = 50 records needed
My timestamp is in epoch format and while displaying the records need to show in the date format.
Below is the query Tried
{
"query":{ "bool": { "must": { "term": { "answer.keyword": "UNHANDLED" } }, "must": { "term": { "source.keyword": "sonax" } } } }, "aggs": { "MyBuckets": { "terms": { "field": "question.keyword",”timestamp”, "sort":{ "_timestamp": "desc" "_source": { "includes": [ "source":"question.keyword",”timestamp”,
}, "size": "50" } } } }
Below is the errors:
- Duplicate Key must syntax error
Please check this: some synatx is missing