实际上,您应该像这样更改映射
"os_name": { "type": "string", "fields": { "raw": { "type": "string", "index": "not_analyzed" } }},
并且您的aggs应该更改为:
GET /temp/example/_search{ "size": 0, "aggs": { "OS": { "terms": {"field": "os_name.raw" } } }}
欢迎分享,转载请注明来源:内存溢出
实际上,您应该像这样更改映射
"os_name": { "type": "string", "fields": { "raw": { "type": "string", "index": "not_analyzed" } }},
并且您的aggs应该更改为:
GET /temp/example/_search{ "size": 0, "aggs": { "OS": { "terms": {"field": "os_name.raw" } } }}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)