# Use script in suggestion

**URL:** <https://discuss.elastic.co/t/use-script-in-suggestion/294069>\
**Category:** Elasticsearch\
**Tags:** painless\
**Created:** [January 11, 2022, 5:47pm UTC](https://discuss.elastic.co/t/use-script-in-suggestion/294069 "2022-01-11T17:47:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amir\_Faramarzi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amir_faramarzi/32/92919_2.png) [@Amir\_Faramarzi](https://discuss.elastic.co/u/Amir_Faramarzi)\
**Post date:** [January 11, 2022, 5:47pm UTC](https://discuss.elastic.co/t/use-script-in-suggestion/294069/1 "2022-01-11T17:47:22Z")

</div>

hello

how to use script(painless) in suggestion??

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [January 25, 2022, 3:54pm UTC](https://discuss.elastic.co/t/use-script-in-suggestion/294069/2 "2022-01-25T15:54:47Z")

</div>

Can you explain your use-case a little more? What are you trying to achieve and where do you need scripting? By default there is no script support in suggesters like the completion one.

---

<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:** [February 22, 2022, 3:55pm UTC](https://discuss.elastic.co/t/use-script-in-suggestion/294069/3 "2022-02-22T15:55:42Z")

</div>

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