# Searching a specific type in a index

**URL:** <https://discuss.elastic.co/t/searching-a-specific-type-in-a-index/25659>\
**Category:** Elasticsearch\
**Created:** [July 15, 2015, 5:36pm UTC](https://discuss.elastic.co/t/searching-a-specific-type-in-a-index/25659 "2015-07-15T17:36:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aarongu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aarongu/32/3626_2.png) [@aarongu](https://discuss.elastic.co/u/aarongu)\
**Post date:** [July 15, 2015, 5:36pm UTC](https://discuss.elastic.co/t/searching-a-specific-type-in-a-index/25659/1 "2015-07-15T17:36:31Z")

</div>

Hello,

Quick question regarding querying.

If I have a "index1" and within that I have multiple types such as "A', "B" ,"C" , Is there a way to search only a single index using the elasticsearch python api?

I see that in the documentation there is:

 ![](https://us1.discourse-cdn.com/elastic/original/2X/6/60e1602d9d2f0b5a1b457d176911a1b889ff6f7a.PNG)

is doc\_type the same as the type shown in this:  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/8/833c528bfe81c2424e978d5b1b850eea8680ec5c.PNG)

Thanks for any suggestions!

---

<div class="post-metadata">

**Author:** ![Jason\_Wee](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@Jason\_Wee](https://discuss.elastic.co/u/Jason_Wee)\
**Post date:** [July 16, 2015, 8:40am UTC](https://discuss.elastic.co/t/searching-a-specific-type-in-a-index/25659/2 "2015-07-16T08:40:42Z")

</div>

what you mean? do you mean search all types within an index or only certain types in an index?

---

<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, 12:01am UTC](https://discuss.elastic.co/t/searching-a-specific-type-in-a-index/25659/3 "2017-07-06T00:01:07Z")

</div>


