I'm trying to write an ElasticSearch aggregate query that includes filtering where I am wanting to grab all of the tags off a all of the documents where a user id matches the one I specify.
Thank you!! I think this is working, but for some reason its not returning all of the collected tags across all documents, even when I remove the size: 10
10 is the default value of size, so removing it does not make a difference. Try setting it to 100 or even 1000.
If you have a very large number of tags, you could also consider wrapping your terms aggregation in a composite aggregation. The composite agg allows you to paginate through all the buckets.
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.