ELK/elasticsearch
특정 데이터 count
파아랑새
2019. 4. 10. 14:27
GET test-index/doc/_count
{
"query" : {
"term" : { "data" : "고양이" }
}
}
========================
python code
def documentCount(self):
result = self._client.count (
index= "stu-index-1",
doc_type= "doc",
body= {
"query" : {
"match" : {"y" : "11"}
}
}
)
print (result)