Commit 8a886327 by Lukas Siatka Committed by GitHub

Chore: changes elastic terms min_doc_count default from 1 to 0 (#24204)

parent e8341a09
...@@ -79,7 +79,7 @@ export class ElasticBucketAggCtrl { ...@@ -79,7 +79,7 @@ export class ElasticBucketAggCtrl {
case 'terms': { case 'terms': {
settings.order = settings.order || 'desc'; settings.order = settings.order || 'desc';
settings.size = settings.size || '10'; settings.size = settings.size || '10';
settings.min_doc_count = settings.min_doc_count || 1; settings.min_doc_count = settings.min_doc_count || 0;
settings.orderBy = settings.orderBy || '_term'; settings.orderBy = settings.orderBy || '_term';
if (settings.size !== '0') { if (settings.size !== '0') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment