diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-09-15 20:49:13 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-09-15 20:49:13 +0200 |
commit | c587a084defe54103aa147b7ab91542a11a548b1 (patch) | |
tree | 5a2a167c66845244b17d49c8682763c10e7fe6d9 | |
parent | a1c908b83d6e07c4065be52e405977114a9f37c4 (diff) | |
download | fuzzycat-c587a084defe54103aa147b7ab91542a11a548b1.tar.gz fuzzycat-c587a084defe54103aa147b7ab91542a11a548b1.zip |
matching: actually return the specified number of results
-rw-r--r-- | fuzzycat/matching.py | 4 |
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 [] |