# Some types are not searchable

**URL:** <https://discuss.elastic.co/t/some-types-are-not-searchable/8028>\
**Category:** Elasticsearch\
**Created:** [June 9, 2012, 1:35pm UTC](https://discuss.elastic.co/t/some-types-are-not-searchable/8028 "2012-06-09T13:35:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![narinder\_izap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/narinder_izap/32/803_2.png) [@narinder\_izap](https://discuss.elastic.co/u/narinder_izap)\
**Post date:** [June 9, 2012, 1:35pm UTC](https://discuss.elastic.co/t/some-types-are-not-searchable/8028/1 "2012-06-09T13:35:38Z")

</div>

I have two type of users in my es database, one is registered through the  
email and other is from facebook. so based on this I have two type of users

RegisteredUser  
FacebookUser

and both the types are having all most the same type of attributes. but  
when i apply even a simple query in facebookuser like a term query say :

{"query":  
{"term":  
{"home\_city\_id" :198763  
}  
}  
}

its not giving the results although same queries are working fine with  
other type (RegisteredUser).

Currently I am using 0.19.4 version of elasticsearch. Can anyone please  
help me what can be the problem & why this particular type is not  
searchable.

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [June 10, 2012, 10:04am UTC](https://discuss.elastic.co/t/some-types-are-not-searchable/8028/2 "2012-06-10T10:04:57Z")

</div>

> its not giving the results although same queries are working fine with  
> other type (RegisteredUser).

From the limited info you have provided, we have no way of knowing what  
the problem is.

Please see [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/help) and follow the instructions  
for gisting a complete (but short) recreation

---

<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, 3:25am UTC](https://discuss.elastic.co/t/some-types-are-not-searchable/8028/3 "2017-07-06T03:25:03Z")

</div>


