hey folks,
I've tried to summarize my idea in the title.
My thought was to get a subset of a bucket:
for example: there ar two buckets:
in both of the buckets i have a set of documents.
bucket1 is complete. Now iwant all the documents of bucket2, where the value of bucket2.someField === bucket1.another_notTheSameField.
Can anybody help?
Hard to say without a more concrete example, but you can embed a second aggregation inside the first which has some further limiting criteria.
E.g. first aggregation is a terms aggregation on field: foo. All documents in the bucket will have the same value for the field foo. If you put a second aggregation inside the first (like a filter aggregation), you'll get a filtered subset of the documents.
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.