spring-data-elasticsearch
spring-data-elasticsearch copied to clipboard
spring-data-elasticsearch doesn't support elasticsearch sql
elasticsearch sql like this:
select count(1) from "indexPrefix*"
That's right, would need to check if the Elasticsearch Java client supports this.
ok, the Java client has a co.elastic.clients.elasticsearch.sql.ElasticsearchSqlClient, so support for this could be implemented.
ok, the Java client has a
co.elastic.clients.elasticsearch.sql.ElasticsearchSqlClient, so support for this could be implemented.
Thank big boss for supporting for this, make me stand on the shoulders of giants.
I had a deeper look today. Althoug integrating the query part is quite easy, it is way harder to find a good way to parse the response returned from an Elasticsearch SQL query into the entities that Spring Data Elasticsearch uses.
For the time being, I wrote a short post (https://www.sothawo.com/post/2023/11/14/use-elasticsearch-sql-with-spring-data-elasticsearch/) about this can currently be integrated int an application, but you need to do the response processing by yourself.