# Use of Ranking API with pre-defined templates

**URL:** <https://discuss.elastic.co/t/use-of-ranking-api-with-pre-defined-templates/217767>\
**Category:** Elasticsearch\
**Created:** [February 4, 2020, 10:27am UTC](https://discuss.elastic.co/t/use-of-ranking-api-with-pre-defined-templates/217767 "2020-02-04T10:27:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![styks90](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/styks90/32/59205_2.png) [@styks90](https://discuss.elastic.co/u/styks90)\
**Post date:** [February 4, 2020, 10:27am UTC](https://discuss.elastic.co/t/use-of-ranking-api-with-pre-defined-templates/217767/1 "2020-02-04T10:27:11Z")

</div>

While we're developing and updating search templates, we regularly test them against a set of queries using the ranking API. However, we did not yet find any docs on how to use the templates stored within a cluster this way. Instead, when trying new things, we resort to copy-pasting the source code, which is more error-prone. Instead, could we just reference the templates which are already in the cluster? Is there something we missed?

---

<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:** [March 3, 2020, 10:27am UTC](https://discuss.elastic.co/t/use-of-ranking-api-with-pre-defined-templates/217767/2 "2020-03-03T10:27:15Z")

</div>

Closed on March 3, 2020, 10:27am UTC

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