Elastic Search - exclude index and type from json response
Yes, as of ES 1.6, you can use response filtering and using the filter_path
parameter in the query enumerate only what you need in the response:
curl -XGET 'localhost:9200/foo_bar/foo/_search?pretty&filter_path=hits.total,hits.max_score,hits.hits._id,hits.hits._source'