From 2cd8675734b92307bce2dce358489db8e77acd73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Sun, 3 Jan 2021 14:18:15 +0100 Subject: [PATCH] Show facet values even for empty queries --- http-ui/public/script.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/http-ui/public/script.js b/http-ui/public/script.js index 3071f78ac..5b17dacbc 100644 --- a/http-ui/public/script.js +++ b/http-ui/public/script.js @@ -4,7 +4,6 @@ var timeoutID = null; $('#query, #facet').on('input', function () { var query = $('#query').val(); var facet = $('#facet').val(); - let fetchFacetDistribution = query.trim() !== "" || facet.trim() !== ""; var timeoutMs = 100; if (timeoutID !== null) { @@ -17,7 +16,7 @@ $('#query, #facet').on('input', function () { url: "query", contentType: 'application/json', data: JSON.stringify({ - 'query': query, 'facetCondition': facet, "facetDistribution": fetchFacetDistribution + 'query': query, 'facetCondition': facet, "facetDistribution": true }), contentType: 'application/json', success: function (data, textStatus, request) {