My index has a nested definition that includes a property of type geo-point. I can see it in Discover but it is not accessible from Documents layer in Maps. Is this the expected behavior or does my mapping need to change? I am using ES 7.6 currently.
example from mapping:
{
"activityLocation": {
"type": "nested",
"properties": {
"coordinates": {"type": "geo-point"},
"name": {"type": "keyword"}
}
}
}
corresponding data in record:
{
"activityLocation": {
"coordinates": {"lat": 34.76544, "lon": -45.8888"},
"name": "A Place"
}
}
If I have the fields mapped separated - not as part of nested definition, then I can access the geo-point field in Maps. This is fine for an object that has a single entry - I can flatten.
Problem is when I have a field that is a list of objects, which is why I am treating as nested object so that I can retain relationships within each object.
{
"activityLocation.coordinates": {"type": "geo-point"},
"activityLocation.name": {"type": keyword"}
}
I know also, that for the "list of objects", I can populate a separate field to capture all the geo-points - just trying to avoid that, if possible. It is an accessible property in Maps.
{
"activityLocationGeo.coordinates": {"type": "geo_point"},
"activityLocation": {
"type": "nested",
"properties": {
"coordinates": {"type": "geo-point"},
"name": {"type": "keyword"}
}
}
}
Any other suggestions? Thank you.