Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

193
Visualizações
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 Respostas
Responde à pergunta

0

Calling index refresh after IndexManyAsync will do the job

await elasticClient.Indices.RefreshAsync("index_name");
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda