Integration with views not working if datasource is "Solr document"

Created on 12 January 2023, over 1 year ago
Updated 20 May 2024, about 1 month ago

Problem/Motivation

When setting up an index with "Solr document" as the data source, despite the existence of a location field and it being properly retrieved as a "Latitude/Longitude" field type, the field selector appears empty when using it in views on the Geolocation Common map plugin.

Steps to reproduce

1. Have a Solr core with indexed data, including a location field containing coordinates in the lat, lon format.
2. Configure the core/index in Drupal, defining "Solr document" as the data source.
3. In the fields section, add this field and define it as a "Latitude/Longitude" field type.
4. Configure a block view using the "Geolocation common map" format.
5. Click on configure. The field selector is empty at this point.

Proposed resolution

One possible solution could be to modify the logic of the Geolocation CommonMap plugin to detect and display "location" fields when the data source is "Solr Document". Another option could be to add a manual option to specify the location field in case the plugin is not able to detect it automatically.

Remaining tasks

- Investigate the exact cause of the problem and determine the best way to solve it.
- Implement the proposed solution.
- Perform tests to ensure that the problem has been resolved.

User interface changes

It may be necessary to add a new option to manually specify the location field in the plugin's configuration.

API changes

-

Data model changes

-

πŸ› Bug report
Status

Closed: won't fix

Version

4.0

Component

Geolocation Field / Backend

Created by

πŸ‡ͺπŸ‡ΈSpain dcimorra

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024