Invalid LinearRing provided for type polygon. Linear ring must be an array of coordinates

version 6.7.2

{
"properties": {
  "boundaries": {
    "type": "geo_shape",
    "ignore_malformed":true
  }
}

}

but ignore_malformed doesn't work.

I can't get documents using this query(below).

{
    "query":{
        "bool": {
            "must": {
                "match_all": {}
            },
            "filter": {
                "geo_shape": {
                    "boundaries": {
                        "shape": {
                            "type": "Polygon",
                            "coordinates" : [82.230177, 52.045447]
                        },
                        "relation": "contains"
                    }
                }
            }
        }
    }
}

it returns this.

"type": "parse_exception",

"reason": "invalid LinearRing provided for type polygon. Linear ring must be an array of coordinates"

How can I solve this? Does it mean my coordinates are invalid?

ignore_malformed only applies to shapes being indexed not for queries.

The polygon you define indoor query is indeed malformed. Please have at look at this on how to define a polygon and other shapes.

I'm sorry but I have another question. this problem solved by creating new index and changing mapping type like this.

{
    "properties": {
      "boundaries": {
        "type": "geo_shape",
        "precision": "1.0m",
        "strategy": "recursive",
	"distance_error_pct": 0.009,
        "ignore_malformed": "true"
      }
    }
  }

If I don't add this setting, is geo_shape not queried?
I am confused as to what changes I made to make my query available.

I am not sure I understand your last question, could you provide an example what exactly doesn't work with the original mapping? (an example reproducing the issue would be great)