Geofield values search api fields from type FullText or string in views should be uppercase

Created on 21 February 2025, 8 days ago

Problem/Motivation

I'm using Elasticsearch with search api. And when configuring the leaflet module with my index I didn't see any results in my map. The field type for my indexed GeoField is String (but same issue on Full Text). The problem occurs in the leafletProcessGeofield function where $this->geoPhpWrapper->load is called. It doens't recognize my data as a GeoType. This is because my data is in lowercase "point(4.456855 51.262471)" but the function only recongizes it as uppercase so it should be "POINT(4.456855 51.262471)".

I made a small adjustment to alter the result to uppercase.

There might be something wrong in my configuration but don't see what, this fixed my problem and I don't see further issues with making it uppercase.

🐛 Bug report
Status

Needs review

Version

10.2

Component

Code

Created by

🇧🇪Belgium cedricl

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024