aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-12-16 18:12:44 +0100
committerMartin Czygan <martin.czygan@gmail.com>2021-12-16 18:12:44 +0100
commit5437e820cbd662fd4ff16e1942e18caad5f23233 (patch)
tree85088f20c8c08b107216a711a264d1b8d7804ea8
parent461793a6481fdf12fdb6758463e59f4189b15b43 (diff)
downloadfuzzycat-5437e820cbd662fd4ff16e1942e18caad5f23233.tar.gz
fuzzycat-5437e820cbd662fd4ff16e1942e18caad5f23233.zip
matching: we do not need exact match counts
up to 100 or even will be ok; see also: https://www.elastic.co/guide/en/elasticsearch/reference/7.16/search-your-data.html#track-total-hits
-rw-r--r--fuzzycat/matching.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/fuzzycat/matching.py b/fuzzycat/matching.py
index 0d87e10..7ba58c9 100644
--- a/fuzzycat/matching.py
+++ b/fuzzycat/matching.py
@@ -153,7 +153,7 @@ class FuzzyReleaseMatcher:
body={
"query": query,
"size": self.size,
- "track_total_hits": True
+ "track_total_hits": 100,
})
if es_compat_hits_total(resp) == 0:
return result
@@ -199,7 +199,7 @@ class FuzzyReleaseMatcher:
body={
"query": query,
"size": self.size,
- "track_total_hits": True
+ "track_total_hits": 100,
})
if es_compat_hits_total(resp) == 0:
return result
@@ -243,7 +243,7 @@ class FuzzyReleaseMatcher:
body={
"query": query,
"size": self.size,
- "track_total_hits": True
+ "track_total_hits": 100,
})
if es_compat_hits_total(resp) == 0:
return result
@@ -289,7 +289,7 @@ class FuzzyReleaseMatcher:
body={
"query": query,
"size": self.size,
- "track_total_hits": True
+ "track_total_hits": 100,
})
if es_compat_hits_total(resp) == 0:
return result