Elasticsearch Sql and json files

Hey there !

Can Elasticsearch sql be used to query json files ?

Hi @aeljazouli,

ES SQL is for querying indices that exist in an Elasticsearch cluster. The query being used is translated to Elasticsearch query dsl that only looks at indices data. It doesn't query json files.

Hi @Andrei_Stefan,

I already create an index that contains json document like this :

"DATE_APPEL":"2019-06-06 10:22:42",

I don't know if i can use the ES SQL too to querry that data or just the lucene query language ?

@aeljazouli ES SQL is like standard SQL, with some limitations. So, whatever you can do in standard SQL, it should work in ES SQL. Again, with some limitations.

Also, an additional set of features, specific only to ES SQL are these three functions: https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-functions-search.html

And a very useful list of what functions and operators one can use in ES SQL, you can find here: https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-functions.html

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