# Incorporating an external library into elasticsearch

**URL:** <https://discuss.elastic.co/t/incorporating-an-external-library-into-elasticsearch/13601>\
**Category:** Elasticsearch\
**Created:** [September 13, 2013, 8:34pm UTC](https://discuss.elastic.co/t/incorporating-an-external-library-into-elasticsearch/13601 "2013-09-13T20:34:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Lewis](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@Daniel\_Lewis](https://discuss.elastic.co/u/Daniel_Lewis)\
**Post date:** [September 13, 2013, 8:34pm UTC](https://discuss.elastic.co/t/incorporating-an-external-library-into-elasticsearch/13601/1 "2013-09-13T20:34:33Z")

</div>

Is it possible to incorporate a library like moment.js into the computed  
value script of a query?

--  
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:** ![Richard\_Louapre](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@Richard\_Louapre](https://discuss.elastic.co/u/Richard_Louapre)\
**Post date:** [September 15, 2013, 12:48pm UTC](https://discuss.elastic.co/t/incorporating-an-external-library-into-elasticsearch/13601/2 "2013-09-15T12:48:04Z")

</div>

I had similar requirement: using an external js library in ES. The  
following PR [1] has been submitted but unfortunately it has not been  
merged.

[1] - [Support for CommonJS - issue #6 by richardwilly98 · Pull Request #7 · elastic/elasticsearch-lang-javascript · GitHub](https://github.com/elasticsearch/elasticsearch-lang-javascript/pull/7)

On Friday, September 13, 2013 4:34:33 PM UTC-4, Daniel Lewis wrote:

> Is it possible to incorporate a library like moment.js into the computed  
> value script of a query?

--  
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:16am UTC](https://discuss.elastic.co/t/incorporating-an-external-library-into-elasticsearch/13601/3 "2017-07-06T02:16:28Z")

</div>

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


