# DocAsUpdate from .Net with NEST Client delay

**URL:** <https://discuss.elastic.co/t/docasupdate-from-net-with-nest-client-delay/110386>\
**Category:** Elasticsearch\
**Created:** [December 5, 2017, 3:38pm UTC](https://discuss.elastic.co/t/docasupdate-from-net-with-nest-client-delay/110386 "2017-12-05T15:38:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdesimone](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@pdesimone](https://discuss.elastic.co/u/pdesimone)\
**Post date:** [December 5, 2017, 3:38pm UTC](https://discuss.elastic.co/t/docasupdate-from-net-with-nest-client-delay/110386/1 "2017-12-05T15:38:48Z")

</div>

Elasticsearch server: 2.3  
Elasticsearch .Net: 2.4.6  
NEST: 2.4.6

var aClient = await GetElasticSearchConnection(objIndex);  
await aClient.UpdateAsync(new DocumentPath  
(objDocument), u =\> u.Index(objIndex).Doc(objDocument).DocAsUpsert());

We are performing an update to the index with the following. If immediately perform a search within less than a second, the updated document is not available. I tried updating Elasticsearch .Net and NEST to 5.5.0 but it didn't help. We are using "await", but unless I mistaken it appears that the DocAsUpsert is queuing or something and the update isn't happening immediately.

Please clarify.  
Thanks

Peter DeSimone

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 2, 2018, 3:39pm UTC](https://discuss.elastic.co/t/docasupdate-from-net-with-nest-client-delay/110386/2 "2018-01-02T15:39:10Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
