indexing-fix-5

This commit is contained in:
Untone 2024-02-29 14:12:35 +03:00
parent 67d1a3ae5c
commit 2b530131e5

View File

@ -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()