1

I am using Search API's Default Node index. I am using Location module to store Location data. But location module fields are not available under Search API Related fields.

I know this has been an issue but was just wondering if this could ever get fixed? I could have used Geolocation or Geofield modules and used the fields in search api. But unfortunately when i used location module i was not using Search API.

Now I have 10000 Nodes using location module to store location details.

What could be the solution? How to make these fields to be used under Search api so that i can use facets and eventually show them on MAP.?

Please help!

Thanks in advance.

1
  • No Answers or solutions? Is there a way we can push in data from Location module's Latitude and Longitude to Geolocation field's Latitude and Longitude and then use those fields in Search API for Indexing? Mar 28, 2015 at 5:39

1 Answer 1

1

As pointed out here, you can achieve that by means of a combination of modules:

Search API Location + Search API Solr + Location field (creating an aggregated location field).

You will need an extra step by implementing hook_search_api_solr_documents_alter() because the longitude and latitude need to be indexed with the right format.

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.