Map Drupal Geofields to ElasticSearch geo_shape fields

Created on 3 January 2025, 3 months ago

Problem/Motivation

ElasticSearch Connector already supports mapping Drupal Geofields to ElasticSearch geo_point fields .

But Drupal GeoFields can store both Well-known text (WKT) and PostGIS data, and both of those formats support geometries more complex than a point (e.g.: Line, Polygon, Polygon-with-hole, Geometry collections, etc.).

The ElasticSearch geo_shape field type is better-suited for storing geometries more complex than a single geographic point.

Proposed resolution

Allow administrators to map Drupal fields to ElasticSearch geo_shape fields when configuring Search API Index fields.

Remaining tasks

  1. Write a patch
  2. Review and feedback
  3. RTBC and feedback
  4. Commit

User interface changes

To be determined, hopefully minimal.

API changes

To be determined, hopefully only API additions.

Data model changes

To be determined, hopefully only additions to the config schema.

Feature request
Status

Active

Version

8.0

Component

Code

Created by

🇨🇦Canada mparker17 UTC-4

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024