Experimental plugin enabling autocompletion, syntax check and documentation for ES|QL queries in Intellij IDEA for Java and Kotlin.
Comment // ES|QL above a text block (triple quotes) and the string will be identified as an ES|QL query.
Typing (ctrl + space) while writing a query will return a list of acceptable commands/values to continue the query correctly.
The plugin will highlight errors in queries, explaining what to fix.
Hovering with the cursor over commands will display documentation describing what the command can be used for and its correct syntax.
By using the plugin settings, the plugin can be connected to an Elasticsearch server instance to fetch indices and field names, which will be then added to the autocompletion options.
Currently, it only works with FROM, SORT, EVAL and WHERE.
By running gradle runIde (if you want to test .kt files, Kotlin must be configured in the sandbox IDE).





