aboutsummaryrefslogtreecommitdiffstats
path: root/fuzzycat
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-09-15 20:49:13 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-09-15 20:49:13 +0200
commitc587a084defe54103aa147b7ab91542a11a548b1 (patch)
tree5a2a167c66845244b17d49c8682763c10e7fe6d9 /fuzzycat
parenta1c908b83d6e07c4065be52e405977114a9f37c4 (diff)
downloadfuzzycat-c587a084defe54103aa147b7ab91542a11a548b1.tar.gz
fuzzycat-c587a084defe54103aa147b7ab91542a11a548b1.zip
matching: actually return the specified number of results
Diffstat (limited to 'fuzzycat')
-rw-r--r--fuzzycat/matching.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fuzzycat/matching.py b/fuzzycat/matching.py
index 683d859..c94a308 100644
--- a/fuzzycat/matching.py
+++ b/fuzzycat/matching.py
@@ -86,7 +86,7 @@ def match_release_fuzzy(
}
resp = es.search(body=body, index="fatcat_release")
if es_compat_hits_total(resp) > 0:
- return response_to_entity_list(resp, entity_type=ReleaseEntity, api=api)
+ return response_to_entity_list(resp, entity_type=ReleaseEntity, size=size, api=api)
# Get fuzzy.
# https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#fuzziness
@@ -104,7 +104,7 @@ def match_release_fuzzy(
}
resp = es.search(body=body, index="fatcat_release")
if es_compat_hits_total(resp) > 0:
- return response_to_entity_list(resp, entity_type=ReleaseEntity, api=api)
+ return response_to_entity_list(resp, entity_type=ReleaseEntity, size=size, api=api)
# TODO: perform more queries on other fields.
return []