# Term query not working in all indices

**URL:** <https://discuss.elastic.co/t/term-query-not-working-in-all-indices/21078>\
**Category:** Elasticsearch\
**Created:** [December 4, 2014, 7:54am UTC](https://discuss.elastic.co/t/term-query-not-working-in-all-indices/21078 "2014-12-04T07:54:55Z")\
**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:** [December 4, 2014, 7:54am UTC](https://discuss.elastic.co/t/term-query-not-working-in-all-indices/21078/1 "2014-12-04T07:54:55Z")

</div>

Hi there,

```
   I have a very simple term query. It is not giving result if I am 

```

executing it against \*"localhostt:9200", \*not even with "  
_localhostt:9200/index\_name_",but if i use the type name i.e. "  
_localhostt:9200/index\_name/type\_name_" ,its giving me results.

Can anyone please suggest what could be the possible reason, can it be some  
kind of corruption, data corruption or something else ??

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/f45429b4-dd91-40af-8ac2-fb0585774f1f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f45429b4-dd91-40af-8ac2-fb0585774f1f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [December 4, 2014, 8:10am UTC](https://discuss.elastic.co/t/term-query-not-working-in-all-indices/21078/2 "2014-12-04T08:10:56Z")

</div>

You might have the same field name used accross many indices but without the same analyzer?  
Hard to tell more without an actual example.

David

> Le 4 déc. 2014 à 08:54, Narinder Kaur [narinder.kaur@izap.in](mailto:narinder.kaur@izap.in) a écrit :
> 
> Hi there,
> 
> ```
> I have a very simple term query. It is not giving result if I am executing it against "localhostt:9200", not even with "localhostt:9200/index_name",but if i use the type name i.e. "localhostt:9200/index_name/type_name" ,its giving me results. 
> 
> ```
> 
> ## Can anyone please suggest what could be the possible reason, can it be some kind of corruption, data corruption or something else ??
> 
> 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).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/f45429b4-dd91-40af-8ac2-fb0585774f1f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f45429b4-dd91-40af-8ac2-fb0585774f1f%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/F843D4EB-8A40-4892-8C60-432D4EDDDCC4%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/F843D4EB-8A40-4892-8C60-432D4EDDDCC4%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:46am UTC](https://discuss.elastic.co/t/term-query-not-working-in-all-indices/21078/3 "2017-07-06T00:46:02Z")

</div>

Closed on July 6, 2017, 12:46am UTC


