AntonShuvaev / elasticsearch4idea

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

不支持地理查询 #55

Closed jianbingguozi closed 2 years ago

jianbingguozi commented 2 years ago

不支持地理查询语句 like this

GET /demo/_search
{
  "from": 0,
  "size": 10,
  "sort": [
    {
      "_geo_distance": {
        "location": {
          "lat": 30,
          "lon": 121
        },
        "order": "desc",
        "unit": "km"
      }
    }
  ],
  "query": {
    "match_all": {}
  }
}

execute 之后会格式化为以下错误形式

GET /demo/_search
{
  "from": 0,
  "size": 10,
  "sort": [
    {
      "_geo_distance": {
        "order": "desc"
      }
    }
  ],
  "query": {
    "match_all": {}
  }
}

version:1.7.0-2021.2

AntonShuvaev commented 2 years ago

Thanks for reporting this issue. Will be fixed in the next update.

AntonShuvaev commented 2 years ago

Fixed in 1.7.1