diff --git a/backend/app/search_client.py b/backend/app/search_client.py index 5d561c2..f9f0bd1 100644 --- a/backend/app/search_client.py +++ b/backend/app/search_client.py @@ -34,6 +34,8 @@ class SearchClient: "attributesToHighlight": ["content"], "highlightPreTag": "", "highlightPostTag": "", + "attributesToCrop": ["content"], + "cropLength": 30, }) results = [] for hit in response.get("hits", []):