Not able to use the method QuerySql on Elasticsearch.Net v. 7 and newer

Hey,

Hopefully I have added the question in the right place:).

Currently I am using Elasticsearch.Net v.6.8.0.

var sqlRequest = new QuerySqlRequest();
sqlRequest.Query = $@"select value from index";
var result = client.QuerySql(sqlRequest);

works well and as expected.

When upgrading to Elasticsearch.Net v.7.0.1.

The method QuerySql no longer exist.

Anybody able to see what have replaced this or what i am doing wrong.

Not interested at current time to use DSL to receive data.

Hey, answering my own question..

Dohh....

SQL has received its own namespace, so methods are moved into the namespace.
Updated code:

var sqlRequest = new QuerySqlRequest();
sqlRequest.Query = $@"select value from index";
var result = client.Sql.Query(sqlRequest);

Similarly, different methods have been moved to their own namespaces:

  • Cat
  • Cluster
  • Graph
  • Nodes

Closed