# Can we search the documents from multiple index by specifying the index with wildcard character like "test\*"?

**URL:** <https://discuss.elastic.co/t/can-we-search-the-documents-from-multiple-index-by-specifying-the-index-with-wildcard-character-like-test/310645>\
**Category:** Elasticsearch\
**Created:** [July 26, 2022, 1:37pm UTC](https://discuss.elastic.co/t/can-we-search-the-documents-from-multiple-index-by-specifying-the-index-with-wildcard-character-like-test/310645 "2022-07-26T13:37:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aurovindo\_Sahu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aurovindo_sahu/32/100717_2.png) [@Aurovindo\_Sahu](https://discuss.elastic.co/u/Aurovindo_Sahu)\
**Post date:** [July 26, 2022, 1:37pm UTC](https://discuss.elastic.co/t/can-we-search-the-documents-from-multiple-index-by-specifying-the-index-with-wildcard-character-like-test/310645/1 "2022-07-26T13:37:20Z")

</div>

I want to search data from multiple indices and all the indices prefix is test.  
Is this possible to have the index name in the get request like **test** \*

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 27, 2022, 8:55am UTC](https://discuss.elastic.co/t/can-we-search-the-documents-from-multiple-index-by-specifying-the-index-with-wildcard-character-like-test/310645/2 "2022-07-27T08:55:12Z")

</div>

Yes, see [the docs](https://www.elastic.co/guide/en/elasticsearch/reference/8.2/search-multiple-indices.html) for examples.

---

<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:** [August 24, 2022, 8:55am UTC](https://discuss.elastic.co/t/can-we-search-the-documents-from-multiple-index-by-specifying-the-index-with-wildcard-character-like-test/310645/3 "2022-08-24T08:55:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
