As in the topic - how can I wait until everything is indexed and searchable without using the Refresh method?
var projects = new List<Project>()
{
(...)
};
IBulkResponse response = await Client.IndexManyAsync(projects);
if (response.IsValid)
{
Client.Refresh(INDEX_NAME);
ISearchResponse<Project> searchResponse = await Client.SearchAsync<Project>(s =>
s.Size(1000).MatchAll());
return searchResponse.Documents;
}
Is there any option of using ?refresh=wait_for as said here?