I've been using aggregations (terms) instead of facets as I used to do
before (Elasticsearch 1.01 on OS-X).
After working perfectly fine for a while, I found out that I stopped
getting new data in the aggregated queries. The unaggregated results look
fine, data is fresh. Have tried _refresh and restarting elasticsearch
(single shard, no replicas) as well, didn't help.
The results can be seen on this gist:
As you can see, the aggregation doesn't show, for example, tags "thing" or
"thingy", while facets do.
As you can see, on the other hand, aggregations give counts for "4", "5",
"6", "long" and "name" while facets don't. This is due to term selection:
by default aggregations only return the top 10 terms (configurable through
the size parameter) and those top terms are sorted by count desc, then
term asc. This is the reason why you didn't get "thing" or "thingy" that
would have been at positions higher than 10. If you want to get counts for
more tags, you could consider increasing the size of your terms aggregation.
I've been using aggregations (terms) instead of facets as I used to do
before (Elasticsearch 1.01 on OS-X).
After working perfectly fine for a while, I found out that I stopped
getting new data in the aggregated queries. The unaggregated results look
fine, data is fresh. Have tried _refresh and restarting elasticsearch
(single shard, no replicas) as well, didn't help.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.