From a51fc4b791768ee3c8431b32c70c938a16b34e38 Mon Sep 17 00:00:00 2001 From: Alex Garel Date: Wed, 26 Feb 2025 18:37:25 +0100 Subject: [PATCH] chore: Revert larger timeout on logo search (unintentional push on main) This reverts commit c456807446e542bf597ac56cf28fe2a03e44d2bf. --- robotoff/logos.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/robotoff/logos.py b/robotoff/logos.py index 09ac2c677e..c0f50718b5 100644 --- a/robotoff/logos.py +++ b/robotoff/logos.py @@ -239,12 +239,7 @@ def knn_search( knn_body["filter"] = {"term": {"server_type": server_type.name}} results = client.search( - index=ElasticSearchIndex.logo, - knn=knn_body, - source=False, - size=k + 1, - # this can be a long request - timeout=20, + index=ElasticSearchIndex.logo, knn=knn_body, source=False, size=k + 1 ) if hits := results["hits"]["hits"]: return [(int(hit["_id"]), 1.0 - hit["_score"]) for hit in hits]