Commit 8d072de5 by Torkel Ödegaard

elasticsearch: changed default terms min_doc_count to 1 and order by to desc, closes #8231

parent 823b40a3
......@@ -81,9 +81,9 @@ function (angular, _, queryDef) {
switch($scope.agg.type) {
case 'terms': {
settings.order = settings.order || "asc";
settings.order = settings.order || "desc";
settings.size = settings.size || "10";
settings.min_doc_count = settings.min_doc_count || 0;
settings.min_doc_count = settings.min_doc_count || 1;
settings.orderBy = settings.orderBy || "_term";
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