I'd like to minimize the query output that ES generates to the essentials only. To do this, I'm using filter_query = hits.total,hits.hits._source.email,hits.hits._source.name. This works as expected, stripping fields like _score, _index and _id:
{
"_source": {
"email": "jeroen@topsecret.xxx",
"name": "jeroen1"
}
}
However, I want to get rid of _source as well, ending up with:
{
"email": "jeroen@topsecret.xxx",
"name": "jeroen1"
}
How can I do this? Thanks!