# Bug ES6 JAVA API: Elasticsearch returning all the indices while trying to get only those indices which are associated with specific alias

**URL:** <https://discuss.elastic.co/t/bug-es6-java-api-elasticsearch-returning-all-the-indices-while-trying-to-get-only-those-indices-which-are-associated-with-specific-alias/110914>\
**Category:** Elasticsearch\
**Created:** [December 9, 2017, 3:20am UTC](https://discuss.elastic.co/t/bug-es6-java-api-elasticsearch-returning-all-the-indices-while-trying-to-get-only-those-indices-which-are-associated-with-specific-alias/110914 "2017-12-09T03:20:54Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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 10, 2017, 3:38pm UTC](https://discuss.elastic.co/t/bug-es6-java-api-elasticsearch-returning-all-the-indices-while-trying-to-get-only-those-indices-which-are-associated-with-specific-alias/110914/3 "2017-12-10T15:38:47Z")

</div>

Read [this](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and specifically the "Also be patient" part.

---

_[View the full topic](https://discuss.elastic.co/t/bug-es6-java-api-elasticsearch-returning-all-the-indices-while-trying-to-get-only-those-indices-which-are-associated-with-specific-alias/110914)._
