Javascript Query builder

Hi All,

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

In java - https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/index.html It is very useful.

I am expecting any libaray like this for javascript.

Thanks in advance

Do you mean this? https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html

Yes the one you mentioned is javascript client.

But in java https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/index.html

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 client.search({
  index: 'myindex',
  body: {
    query: {
      match: {
        title: 'test'
      }
    }
  }
});

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