Skip to content

Commit

Permalink
chore: Revert larger timeout on logo search
Browse files Browse the repository at this point in the history
(unintentional push on main)

This reverts commit c456807.
  • Loading branch information
alexgarel committed Feb 26, 2025
1 parent c456807 commit a51fc4b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions robotoff/logos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit a51fc4b

Please sign in to comment.