Does min_doc_count impact the documents returned?

Hi - I have 2 questions regarding term aggregations min_doc_count setting.

  1. Will min_doc_count limit the documents returned or just the bucket/term in aggregation? Say I have 200 documents and 120 of them have the term "elasticsearch" and 80 with term "kibana" and if I set the min_doc_count to 100 on the field that contains these terms, would a search query (that matches all 200) return all 200 documents or only the ones that has "elasticsearch". My query by itself matches both "elasticsearch" and "kibana".

  2. Is setting min_doc_count to a high number expected to improve search (aggregation) speed? I tried this in my sample setup, but got a mixed result - could be because of other issues.

Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.