Hello, I have this index geo-test with this mapping:
{
"mappings": {
"properties": {
"elasticSearchRequestList": {
"type": "nested",
"include_in_parent": true,
"properties": {
"_class": {
"type": "keyword",
"index": false,
"doc_values": false
},
"searchData": {
"properties": {
"_class": {
"type": "keyword",
"index": false,
"doc_values": false
},
"boundaries": {
"type": "nested",
"include_in_parent": true,
"properties": {
"_class": {
"type": "keyword",
"index": false,
"doc_values": false
},
"geometryObject": {
"type": "geo_shape"
},
"range": {
"type": "double"
},
"uuid": {
"type": "keyword"
}
}
}
}
}
}
}
}
}
}
when I want to save an document like this one:
{
"elasticSearchRequestList": [
{
"searchData": {
"boundaries": [
{
"geometryObject": {
"type": "polygon",
"coordinates": [
[
[
-71,
40
],
[
-72,
40
],
[
-72,
41
],
[
-71,
41
],
[
-71,
40
]
]
]
}
},
{
"geometryObject": {
"type": "polygon",
"coordinates": [
[
[
-73,
42
],
[
-74,
42
],
[
-74,
43
],
[
-73,
43
],
[
-73,
42
]
]
]
}
}
]
}
},
{
"searchData": {
"boundaries": [
{
"geometryObject": {
"type": "polygon",
"coordinates": [
[
[
-71,
40
],
[
-72,
40
],
[
-72,
41
],
[
-71,
41
],
[
-71,
40
]
]
]
}
},
{
"geometryObject": {
"type": "polygon",
"coordinates": [
[
[
-73,
42
],
[
-74,
42
],
[
-74,
43
],
[
-73,
43
],
[
-73,
42
]
]
]
}
}
]
}
}
]
}
then I get this error:
DocValuesField "elasticSearchRequestList.searchData.boundaries.geometryObject" appears more than once in this document (only one value is allowed per field)
Can someone help please?
Thanks