# Which is faster GetAsync or SearchAsync in elastic search NEST?

**URL:** <https://discuss.elastic.co/t/which-is-faster-getasync-or-searchasync-in-elastic-search-nest/189005>\
**Category:** Elasticsearch\
**Created:** [July 5, 2019, 5:32am UTC](https://discuss.elastic.co/t/which-is-faster-getasync-or-searchasync-in-elastic-search-nest/189005 "2019-07-05T05:32:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SudevPK](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@SudevPK](https://discuss.elastic.co/u/SudevPK)\
**Post date:** [July 5, 2019, 5:32am UTC](https://discuss.elastic.co/t/which-is-faster-getasync-or-searchasync-in-elastic-search-nest/189005/1 "2019-07-05T05:32:49Z")

</div>

```
 var response = elasticClient
                    .SearchAsync<item>(a => a
                        .Index("item")
                        .AllTypes()
                        .Size(1)
                        .Query(q => q
                            .Match(p => p.Field("Id").Query(id.ToString()))));
                var responseTook = response.Result.Took;

```

OR

`var response1 = elasticClient.GetAsync<item>(id);`

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 5, 2019, 6:43am UTC](https://discuss.elastic.co/t/which-is-faster-getasync-or-searchasync-in-elastic-search-nest/189005/2 "2019-07-05T06:43:16Z")

</div>

Get by id is faster and real time.  
Search is not real time. Your document might not be found even if you just indexed it.

---

<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:** [August 2, 2019, 6:43am UTC](https://discuss.elastic.co/t/which-is-faster-getasync-or-searchasync-in-elastic-search-nest/189005/3 "2019-08-02T06:43:21Z")

</div>

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