Elasticsearch significant terms aggregation: meaning of doc_count and bg_count Elasticsearch significant terms aggregation: meaning of doc_count and bg_count elasticsearch elasticsearch

Elasticsearch significant terms aggregation: meaning of doc_count and bg_count


Very simply:

  • doc_count is the number of documents in the result set with the given term
  • bg_count is the number of documents in the whole index with the given term