Hi,
I am just starting to experiment and learn elasticsearch and need a little help. I am using elasticsearch 2.0 with kibana 4.0. I have some json documents that I loaded into elasticsearch and was experimenting with kibana. By using the python client, I modified the mapping before loading the data and I used the following mapping for string fields:
{"type": "string", "fields": {"raw": {"type": "string", "index": "not_analyzed"}}}
After indexing my data with this mapping, kibana has stopped showing simple aggregations for terms.
This is the request being fired and even on sense, the buckets are empty:
Request:
POST mixpanel/people_profiles/_search
{
"size": 0,
"query": {
"query_string": {
"analyze_wildcard": true,
"query": "*"
}
},
"aggs": {
"3": {
"terms": {
"field": "$properties.$city.raw",
"size": 20,
"order": {
"_count": "desc"
}
}
}
}
}
Response:
{
"took": 5,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 81065,
"max_score": 0,
"hits": []
},
"aggregations": {
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
}
}
Can anyone please help me understand why this is happening?