From 83a2d8675c1a65e15c769987ba979ceb909c2a05 Mon Sep 17 00:00:00 2001 From: Adam Kariv Date: Sun, 25 Aug 2024 20:26:23 +0300 Subject: [PATCH] Add distinct-responses-only --- server.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/server.py b/server.py index ad33cfd..876fdd0 100644 --- a/server.py +++ b/server.py @@ -134,12 +134,6 @@ def apply_extra(self, extras): 'size': 1000 } } - self.q['cards'].setdefault('aggs', {})['categories'] = { - 'terms': { - 'field': 'response_categories', - 'size': 20 - } - } self.extract_agg = True if x == 'did-you-mean': if 'cards' in self.q: