您可以使用
source查询字符串参数,以便直接在URL中传递正文
curl -XGET 'http://localhost:9200/employee/_search?search_type=count&pretty&source={"aggregations":{"profile":{"terms":{"field":"_type"},"aggs":{"hits":{"top_hits":{"size":1}}}}}}' ^ | use the source parameter
您可以使用
source查询字符串参数,以便直接在URL中传递正文
curl -XGET 'http://localhost:9200/employee/_search?search_type=count&pretty&source={"aggregations":{"profile":{"terms":{"field":"_type"},"aggs":{"hits":{"top_hits":{"size":1}}}}}}' ^ | use the source parameter