indexing-fix-5
This commit is contained in:
parent
67d1a3ae5c
commit
2b530131e5
|
@ -108,7 +108,7 @@ class SearchService:
|
||||||
await self.put_mapping()
|
await self.put_mapping()
|
||||||
else:
|
else:
|
||||||
# Check if the mapping is correct, and recreate the index if needed
|
# 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:
|
if mapping != expected_mapping:
|
||||||
await self.recreate_index()
|
await self.recreate_index()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user