我有device_model
字段,例如:
LENOVO IdeaTab A3000-H [graphicsDeviceName:PowerVR SGX 544MP; graphicsDeviceVendor:Imagination Technologies; graphicsDeviceVersion:OpenGL ES 2.0 build 1.9@2204701; graphicsMemorySize:60; operatingSystem:Android OS 4.2.2 / API-17(JDQ39 / A3000_A422_003_026_130823_WW_SMS_FUSE); processorCount:4; processorType:ARMv7 VFPv3 NEON; systemMemorySize:974; maxTextureSize:4096]
我想汇总以了解设备:
"aggs" : {
"devices" : {
"terms" : { "field" : "device_model",
"size": 0
}
}
}
但它只返回一个像这样的聚合词:
"aggregations": {
"user-ids": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "android",
"doc_count": 20851
},
{
"key": "api",
"doc_count": 20851
},
{
"key": "es",
"doc_count": 20851
},
但我希望看到整个领域。我应该怎么做弹性搜索,而不是在我聚合时划分我的字符串字段?