# How to use Search templates in collate for phrase suggester

**URL:** <https://discuss.elastic.co/t/how-to-use-search-templates-in-collate-for-phrase-suggester/338515>\
**Category:** Elasticsearch\
**Created:** [July 17, 2023, 8:33am UTC](https://discuss.elastic.co/t/how-to-use-search-templates-in-collate-for-phrase-suggester/338515 "2023-07-17T08:33:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![To\_Noroozi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/to_noroozi/32/123521_2.png) [@To\_Noroozi](https://discuss.elastic.co/u/To_Noroozi)\
**Post date:** [July 17, 2023, 8:33am UTC](https://discuss.elastic.co/t/how-to-use-search-templates-in-collate-for-phrase-suggester/338515/1 "2023-07-17T08:33:38Z")

</div>

Hi guys, according to the this link for collate: [Suggesters | Elasticsearch Guide [8.8] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters.html)

we can use our custom search template to use more complex query.  
i create sample search template and it is ok with name tmp1.

but i cant find how to set this template for collate query. please give me sample if you know . thank you

---

<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 14, 2023, 8:34am UTC](https://discuss.elastic.co/t/how-to-use-search-templates-in-collate-for-phrase-suggester/338515/2 "2023-08-14T08:34:11Z")

</div>

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