1

Does composite aggregation support min_doc_count filter?

I want to only return aggregations those have min_doc_count 2

1 Answer 1

3

min_doc_count is not supported by the composite aggregation and according to this issue it doesn't seem like it will ever be the case.

You can achieve the min_doc_count functionality by paginating all buckets and doing it on the client side.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks! .. I was going through the same thread and was about to answer :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.