是的,如果您使用的是ES
1.6或更高版本,则可以使用响应过滤和
filter_path参数。
curl -XGET 'localhost:9200/_search?pretty&filter_path=hits.hits._source'
您甚至可以只指定所需的字段
curl -XGET 'localhost:9200/_search?pretty&filter_path=hits.hits._source&_source=title,name'

是的,如果您使用的是ES
1.6或更高版本,则可以使用响应过滤和
filter_path参数。
curl -XGET 'localhost:9200/_search?pretty&filter_path=hits.hits._source'
您甚至可以只指定所需的字段
curl -XGET 'localhost:9200/_search?pretty&filter_path=hits.hits._source&_source=title,name'