# Mvel script requiring elasticsearch restart

**URL:** <https://discuss.elastic.co/t/mvel-script-requiring-elasticsearch-restart/12157>\
**Category:** Elasticsearch\
**Created:** [May 28, 2013, 7:23pm UTC](https://discuss.elastic.co/t/mvel-script-requiring-elasticsearch-restart/12157 "2013-05-28T19:23:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yogesh](https://avatars.discourse-cdn.com/v4/letter/y/49beb7/32.png) [@yogesh](https://discuss.elastic.co/u/yogesh)\
**Post date:** [May 28, 2013, 7:23pm UTC](https://discuss.elastic.co/t/mvel-script-requiring-elasticsearch-restart/12157/1 "2013-05-28T19:23:51Z")

</div>

Hi,

I have some elastic search queries that use mvel scripts. If I can put the  
mvel scripts in the config directory and restart elastic search, scripts  
are recognized and everything works.

However, requiring restart of elastic search is not a good option in our  
production environment.

How can I specify the full path name of the script (mvel) as part of the  
query and bypass this issue. I realize that the query will be slower, but  
this will be great as long as it can work.

I would like to be able to specify (full path name as part of the query).

"script": "/tmp/es\_weight"

Any help or pointers are appreciated.

regards,

Yogesh

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 2:34am UTC](https://discuss.elastic.co/t/mvel-script-requiring-elasticsearch-restart/12157/2 "2017-07-06T02:34:17Z")

</div>

Closed on July 6, 2017, 2:34am UTC


