Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

189
Views
NEST Wait for the server to finish indexing after bulk insert

I'm indexing a number of documents using Nest 7.0:

await client.IndexManyAsync(docs, myAlias, cancellationToken);

For my tests I need to make sure I can query the indexed documents with 100% guarantee because wait for a fixed amount of time after IndexManyAsync() doesn't always work. I think I need an equivalent of ?refresh=wait_for parameter but cannot find any examples in the fluent API and IndexManyAsync() doesn't have any suitable overloads :( How can I do that?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Calling index refresh after IndexManyAsync will do the job

await elasticClient.Indices.RefreshAsync("index_name");
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!