Hi all,
I want to get all server items stored within the database. Now I have a problem within the following aggregations request:
POST /index/item/_search
{
"size": 0,
"aggregations": {
"agg": {
"terms": {
"field": "server",
"size": 0
}
}
}
}
it worked correctly until last week and returned the correct servers.
In the meantime we got a "data too large" Error. According to Limiting Memory Usage - Elasticsearch we increased the memory ... and now it works again.
But (unfortunately) now the buckets are empty
{
"took": 296,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 15586945,
"max_score": 0,
"hits": []
},
"aggregations": {
"agg": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
}
}
The mapping for this field is:
{
"index": {
"mappings": {
"item": {
"properties": {
...,
"server": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
}
has any one, an idea what may be wrong ?
Regards,
Andreas