Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions webapp/app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,9 @@ def getuid(self):
try:
result = index.get_document(uid)
return jsonify(vars(result)) # doc is already a dict-like
except Exception as e:
return jsonify({"error": str(e)}), 404
except Exception:
logger.exception("Error fetching Meilisearch document uid=%s", uid)
return jsonify({"error": "Document not found"}), 404


class KVSearchView(BaseView):
Expand Down