Skip to content

Geo-Shape datatype and ignore_malformed #23747

@murdav

Description

@murdav

Dear All,

This issue it to ask you the possibility to have ignore_malformed parameter available also for geo-shape datatype.
A futher example is the availability of the param for geo-point datatype.

Example:

PUT test
{
    "settings" : {
        "number_of_shards" : 1
    },
    "mappings" : {
        "type1" : {
            "properties" : {
                "name" : { "type" : "text" },
                "bbox": {
                  "type": "geo_shape",
                  "precision": "10km",
                  "tree": "quadtree",
                  "ignore_malformed": "true"
                  }
            }
        }
    }
}

For example I would need to add the BBOX field, but it's possible that the values are not in the known range, hence I got:

'reason': 'Bad X value 180.00001 is not in boundary Rect(minX=-180.0,maxX=180.0,minY=-90.0,maxY=90.0)'},

It will be great to skip only the above-mentioned field and not the entire record. I could also think adding a null value and search for records that have null_value/blank/None/Empty field.

Initial discussion:
https://discuss.elastic.co/t/geo-shape-and-unsupported-validation-method-ignore-malformed/79887

Thanks you once again,

D

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Analytics/GeoIndexing, search aggregations of geo points and shapes>enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions