Thanks David for replying so quicky!
I also tried:
PUT test1
{
"settings" : {
"number_of_shards" : 1
},
"mappings" : {
"type1" : {
"properties" : {
"field1" : { "type" : "text" },
"bbox": {
"type": "geo_shape",
"precision": "10km",
"tree": "quadtree",
"validation_method": "ignore_malformed"
}
}
}
}
}
an I got:
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Mapping definition for [bbox] has unsupported parameters: [validation_method : ignore_malformed]"
}
],
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping [type1]: Mapping definition for [bbox] has unsupported parameters: [validation_method : ignore_malformed]",
"caused_by": {
"type": "mapper_parsing_exception",
"reason": "Mapping definition for [bbox] has unsupported parameters: [validation_method : ignore_malformed]"
}
},
"status": 400
}
The same using:
"validation_method": "COERCE" or "validation_method": "coerce":
"reason": "Mapping definition for [bbox1] has unsupported parameters: [validation_method : COERCE]"
Or the deprecated (5.0.0) ignore_malformed
Removing
"validation_method": "ignore_malformed"
Of course it works, but while indexing I have:
'error': {'type': 'mapper_parsing_exception', 'caused_by': {'type': 'invalid_shape_exception', 'reason': 'Bad X value 180.083333 is not in boundary Rect(minX=-180.0,maxX=180.0,minY=-90.0,maxY=90.0)'}, 'reason': 'failed to parse [bbox]'}, '_type': 'layer'}}, {'index': {'status': 400, '_index': 'myindex', '_id': '10877', 'error': {'type': 'mapper_parsing_exception', 'caused_by': {'type': 'invalid_shape_exception', 'reason': 'Bad X value 180.083333 is not in boundary Rect(minX=-180.0,maxX=180.0,minY=-90.0,maxY=90.0)'}, 'reason': 'failed to parse [bbox]'}, '_type': 'layer'}}])
Because some BBOX could be wrong and I simply don't want to index that field only.
D