我希望将参数附加?search_type=count
到弹性搜索。
curl -XGET 'http://127.0.0.1:9200/votes/_search?search_type=count' -d '
{
"facets" : {
"votes" : {
"terms" : {
"field" : "question_id"
}
}
}
}'
类似的东西。我如何告诉轮胎附加它search_type=count
?