Javascript Query builder

Hi All,

Is there any Official Query builder or REST Client for javascript for elasticsearch.

In java - It is very useful.

I am expecting any libaray like this for javascript.

Thanks in advance

Do you mean this?

Yes the one you mentioned is javascript client.

But in java

There is Query DSL, Aggreation etc.. Simply they are used for Query Builder. So is there is any query builder in javascript for elasticsearch to write complex queries (my queries are nearly 400 lines )

I believe there is no such a thing as it's pretty straight forward in JS vs in JAVA to generate a JSON Query:

const response = await{
  index: 'myindex',
  body: {
    query: {
      match: {
        title: 'test'

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