1

I am using the Location Module to add a location to a field on a content type I am then using Views and Search Api to create an index and a view of this content type. The problem I have is that I cant find any way to get the data from the location to the view. At the bottom of the search index page I can add other entities such as users that are linked to this node but not the Location this is the same for Relationships section in the view.

3 Answers 3

1

This was a compatibility issue with the Location module moving over to geofield module allowed me to add the coordinates to the search api index

0

The Search API Location module provides integration with the Location module, indexing location data.

1
  • No, it doesn't. As per the description it states 'location fields probably work, but I haven't tested it yet' and says that Geofield fields definitely work. From the testing I've done the Location fields don't work at all.
    – reor
    Nov 1, 2016 at 2:43
0

Currently only the Solr Search API back-end with the Geofield module is supported for location searching. In order to mimic the behaviour of the Drupal Location address field entry first install these three modules:

Managing the Fields of the Entity create an Address field (Postal Address). Then create a Geofield field with a widget type of 'Geocode from another field'. Then select the first Address field as the 'Geocode from field' in the options. Also select the service that will do the Geocoding (Google, Yahoo, Bing, etc.).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.