aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-12-16 18:58:28 +0100
committerMartin Czygan <martin.czygan@gmail.com>2021-12-16 18:58:28 +0100
commit4720fb51584fae1edc2a79dd94c24b4ddac92acb (patch)
tree6dd68db2ab6207f8a283dce5c05f1ca7547de5e2
parent5437e820cbd662fd4ff16e1942e18caad5f23233 (diff)
downloadfuzzycat-4720fb51584fae1edc2a79dd94c24b4ddac92acb.tar.gz
fuzzycat-4720fb51584fae1edc2a79dd94c24b4ddac92acb.zip
matching: track_total_hits, use False
integer, despite supported according to the docs, yielded a 400 parse-error
-rw-r--r--fuzzycat/matching.py8
1 files 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