# How ES handles the query when we don't set \_type field?

**URL:** <https://discuss.elastic.co/t/how-es-handles-the-query-when-we-dont-set--type-field/11638>\
**Category:** Elasticsearch\
**Created:** [April 19, 2013, 1:39am UTC](https://discuss.elastic.co/t/how-es-handles-the-query-when-we-dont-set--type-field/11638 "2013-04-19T01:39:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Burak\_Emre\_Kabakci](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/burak_emre_kabakci/32/2212_2.png) [@Burak\_Emre\_Kabakci](https://discuss.elastic.co/u/Burak_Emre_Kabakci)\
**Post date:** [April 19, 2013, 1:39am UTC](https://discuss.elastic.co/t/how-es-handles-the-query-when-we-dont-set--type-field/11638/1 "2013-04-19T01:39:29Z")

</div>

Is there any performance difference between these queries?  
[http://pastebin.com/Wu5VPhhJ](http://pastebin.com/Wu5VPhhJ)  
[http://pastebin.com/2Ket4hHN](http://pastebin.com/2Ket4hHN)  
I wonder whether Elasticsearch performs same query in each type when we  
don't set \_type field or makes some performance boosting hacks.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Burak\_Emre\_Kabakci](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/burak_emre_kabakci/32/2212_2.png) [@Burak\_Emre\_Kabakci](https://discuss.elastic.co/u/Burak_Emre_Kabakci)\
**Post date:** [April 23, 2013, 10:27pm UTC](https://discuss.elastic.co/t/how-es-handles-the-query-when-we-dont-set--type-field/11638/2 "2013-04-23T22:27:42Z")

</div>

BTW, I have only 3 types in the index.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:39am UTC](https://discuss.elastic.co/t/how-es-handles-the-query-when-we-dont-set--type-field/11638/3 "2017-07-06T02:39:53Z")

</div>

Closed on July 6, 2017, 2:39am UTC


