opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.7k stars 899 forks source link

[BUG] Geospatial field name only works without a dot #7260

Open pbraun9 opened 4 months ago

pbraun9 commented 4 months ago

The official example works with a field name without a dot e.g. point. But when I use dotted field names e.g. source.geo.location or even point.location if you wish, nothing shows up in the map.

PUT testindex3
{
  "mappings": {
    "properties": {
      "source.geo.location": {
        "type": "geo_point"
      }
    }
  }
}

PUT testindex3/_doc/1
{
  "source.geo.location": {
    "lat": 55.7524,
    "lon": 49.1388
  }
}

Then create index pattern textindex3* and setup a map against the source.geo.location geospatial field.

==> nothing shows up in the Map (a localization should show up in Russia, given those coordinates)

This issue happens only when the field name contains a dot.

OpenSearch & OpenSearch Dashboards v 2.14.0

Debian 12 (bookworm)

Default plugins installed

alertingDashboards@2.14.0.0
anomalyDetectionDashboards@2.14.0.0
assistantDashboards@2.14.0.0
customImportMapDashboards@2.14.0.0
ganttChartDashboards@2.14.0.0
indexManagementDashboards@2.14.0.0
mlCommonsDashboards@2.14.0.0
notificationsDashboards@2.14.0.0
observabilityDashboards@2.14.0.0
queryWorkbenchDashboards@2.14.0.0
reportsDashboards@2.14.0.0
searchRelevanceDashboards@2.14.0.0
securityAnalyticsDashboards@2.14.0.0
securityDashboards@2.14.0.0
pbraun9 commented 4 months ago

I mean my fields are nested alright, it works everywhere else so I don't get why it wouldn't work with Maps. Am I missing something or is this truly a bug? 2024-07-23-111337_265x133_scrot

dblock commented 3 months ago

Likely a bug.

[Catch All Triage - 1, 2, 3]