# How to specify the index in a pre registered search template in 6.3

**URL:** <https://discuss.elastic.co/t/how-to-specify-the-index-in-a-pre-registered-search-template-in-6-3/149153>\
**Category:** Elasticsearch\
**Created:** [September 19, 2018, 4:13pm UTC](https://discuss.elastic.co/t/how-to-specify-the-index-in-a-pre-registered-search-template-in-6-3/149153 "2018-09-19T16:13:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmlucjav](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jmlucjav/32/5870_2.png) [@jmlucjav](https://discuss.elastic.co/u/jmlucjav)\
**Post date:** [September 19, 2018, 4:13pm UTC](https://discuss.elastic.co/t/how-to-specify-the-index-in-a-pre-registered-search-template-in-6-3/149153/1 "2018-09-19T16:13:26Z")

</div>

Hi,

I am using a pre registered search templates in ES6.3, all is working fine, but I must be missing something obvious, where can I specify what index I want to hit when using the template?

I don't see a way to either add it to the template, or to the invocation of the template. Any hint to any doc or sample?

thanks

---

<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:** [October 17, 2018, 4:13pm UTC](https://discuss.elastic.co/t/how-to-specify-the-index-in-a-pre-registered-search-template-in-6-3/149153/2 "2018-10-17T16:13:35Z")

</div>

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