Skip to content

Commit

Permalink
wait for search index refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
akotlar committed Oct 20, 2023
1 parent 0c75097 commit f0a0069
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/python/bystro/search/index/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ async def go(
await indexer.close.remote()

await client.indices.put_settings(index=index_name, body=post_index_settings)
await client.indices.refresh(index=index_name)

await client.close()

return data.get_header_fields()
Expand Down

0 comments on commit f0a0069

Please sign in to comment.