# Elastic-builder - Elasticsearch 5.x query builder for node.js

**URL:** <https://discuss.elastic.co/t/elastic-builder-elasticsearch-5-x-query-builder-for-node-js/83962>\
**Category:** Elasticsearch\
**Created:** [April 28, 2017, 3:57am UTC](https://discuss.elastic.co/t/elastic-builder-elasticsearch-5-x-query-builder-for-node-js/83962 "2017-04-28T03:57:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sudo-suhas](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sudo-suhas](https://discuss.elastic.co/u/sudo-suhas)\
**Post date:** [April 28, 2017, 3:57am UTC](https://discuss.elastic.co/t/elastic-builder-elasticsearch-5-x-query-builder-for-node-js/83962/1 "2017-04-28T03:57:23Z")

</div>

[elastic.js](https://github.com/fullscale/elastic.js) was a library which could be used for building the elasticsearch request body using builder syntax. However, it has not been updated in over 3 years and it is not longer usable with 5.x version of elasticsearch DSL.

So I have written a new library, [elastic-builder](https://github.com/sudo-suhas/elastic-builder) for use with node.js. It is heavily inspired by elastic.js and provides a very similar syntax for building request body search.

The code is up to date with the 5.x version of ElasticSearch.

# Demo

[https://elastic-builder.js.org/](https://elastic-builder.js.org/)

# API Documentation

[https://elastic-builder.js.org/docs/](https://elastic-builder.js.org/docs/)

Any suggestions or feedback is welcome.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 28, 2017, 7:56am UTC](https://discuss.elastic.co/t/elastic-builder-elasticsearch-5-x-query-builder-for-node-js/83962/2 "2017-04-28T07:56:50Z")

</div>

Thanks for sharing this!

---

<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:** [May 26, 2017, 7:58am UTC](https://discuss.elastic.co/t/elastic-builder-elasticsearch-5-x-query-builder-for-node-js/83962/3 "2017-05-26T07:58:56Z")

</div>

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