AntonShuvaev / elasticsearch4idea

Elasticsearch Plugin for JetBrains IDEs
https://plugins.jetbrains.com/plugin/14512-elasticsearch
59 stars 8 forks source link

Change autocomplete template for bool operators #124

Closed spaduret closed 1 year ago

spaduret commented 1 year ago

Update autocomplete template for bool operators

This is not really a bug but when you build a bool query with must/should... operators autocomplete creates is with a {} brackets:

"query": {
  "bool": {
    "must": {
      "exists": {
        "field": "id"
      }
    }
  }
}

It will be nice to change it to follow Kibana behavior and use [] brackets because most of the time multiple conditions are used.

Environment information:

AntonShuvaev commented 1 year ago

Thanks for the suggestion. I will do it in the next version.

AntonShuvaev commented 1 year ago

Fixed in 2023.2.6

spaduret commented 1 year ago

Thank you very much!