From 4720fb51584fae1edc2a79dd94c24b4ddac92acb Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Thu, 16 Dec 2021 18:58:28 +0100 Subject: matching: track_total_hits, use False integer, despite supported according to the docs, yielded a 400 parse-error --- fuzzycat/matching.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fuzzycat/matching.py b/fuzzycat/matching.py index 7ba58c9..b01ce64 100644 --- a/fuzzycat/matching.py +++ b/fuzzycat/matching.py @@ -153,7 +153,7 @@ class FuzzyReleaseMatcher: body={ "query": query, "size": self.size, - "track_total_hits": 100, + "track_total_hits": False, }) if es_compat_hits_total(resp) == 0: return result @@ -199,7 +199,7 @@ class FuzzyReleaseMatcher: body={ "query": query, "size": self.size, - "track_total_hits": 100, + "track_total_hits": False, }) if es_compat_hits_total(resp) == 0: return result @@ -243,7 +243,7 @@ class FuzzyReleaseMatcher: body={ "query": query, "size": self.size, - "track_total_hits": 100, + "track_total_hits": False, }) if es_compat_hits_total(resp) == 0: return result @@ -289,7 +289,7 @@ class FuzzyReleaseMatcher: body={ "query": query, "size": self.size, - "track_total_hits": 100, + "track_total_hits": False, }) if es_compat_hits_total(resp) == 0: return result -- cgit v1.2.3