From c587a084defe54103aa147b7ab91542a11a548b1 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Wed, 15 Sep 2021 20:49:13 +0200 Subject: matching: actually return the specified number of results --- fuzzycat/matching.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fuzzycat') 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 [] -- cgit v1.2.3