I'm trying to create a view with Search API index and Geofield proximity. For some reason the geofield proximity option is not listed. How do I make this show up? Thank you!

Comments

tuwebo’s picture

Hi,
I think you should take a look at Search API Location module, but I think you will need Apache Solr server for that.

blainelang’s picture

I can create a view with the proximity field showing distance but it would also need to have a search_api facet.

Is this possible now, as I can't get this to work. I'm willing to fund this if work is needed to get this working.

blainelang’s picture

The issue that I was having which was preventing the proximity distance facet from working (was getting solr errors) was solved by @das-peter in this issue: https://www.drupal.org/node/2578407

The proximity distance facet is not all that usable as is, because it only works with the links style facet, generates a link for every 20km. Not so useful with records that span a country of over 3000 km.

Also, if you want to enable the geofield "distance" as an exposed filter on the view, make sure you enable the "Expose Operator" for the geofield exposed filter setting to see the dropdown selection for distances in the view.

blast0344’s picture

Is there some patch to make this work? I've tried with the latest version of Open Layers 3, Geofield and Search api modules but it's not working. Proximity is working in view with the regular node, but there is no proximity field in search api view with "Indexed node".

blast0344’s picture

Who needs proximity search, check this issue: https://www.drupal.org/node/2149733
I've successfully configured postcode search with indexed nodes.