# Elasticsearch API: search with id filter VS get

**URL:** <https://discuss.elastic.co/t/elasticsearch-api-search-with-id-filter-vs-get/54942>\
**Category:** Elasticsearch\
**Created:** [July 7, 2016, 12:02pm UTC](https://discuss.elastic.co/t/elasticsearch-api-search-with-id-filter-vs-get/54942 "2016-07-07T12:02:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LiorY89](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@LiorY89](https://discuss.elastic.co/u/LiorY89)\
**Post date:** [July 7, 2016, 12:02pm UTC](https://discuss.elastic.co/t/elasticsearch-api-search-with-id-filter-vs-get/54942/1 "2016-07-07T12:02:36Z")

</div>

I have list of ids, which i need to retrieve  
is there any difference using multi-get and using a search with an id filter? is the GET faster?

---

<div class="post-metadata">

**Author:** ![cbuescher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cbuescher/32/60402_2.png) [@cbuescher](https://discuss.elastic.co/u/cbuescher)\
**Post date:** [July 7, 2016, 12:22pm UTC](https://discuss.elastic.co/t/elasticsearch-api-search-with-id-filter-vs-get/54942/2 "2016-07-07T12:22:31Z")

</div>

Hi,

if you only want to retrieve the documents, my gut feeling is that multi-get is faster. Using Multi Get has the advantage of being real-time (so it's not affected by the refresh rate of the index) and also avoids the different phases (query, fetch) that ids queries will go through. Thats the main reasons why I think its faster, but I'd be interested if the difference is measurable.

---

<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:** [July 5, 2017, 10:37pm UTC](https://discuss.elastic.co/t/elasticsearch-api-search-with-id-filter-vs-get/54942/3 "2017-07-05T22:37:23Z")

</div>


