diff --git a/services/search.py b/services/search.py index a0c8b98e..1e92133f 100644 --- a/services/search.py +++ b/services/search.py @@ -108,7 +108,7 @@ class SearchService: await self.put_mapping() else: # Check if the mapping is correct, and recreate the index if needed - mapping = await self.client.indices.get_mapping(index=self.index_name) + mapping = self.client.indices.get_mapping(index=self.index_name) if mapping != expected_mapping: await self.recreate_index()