it would be great to see the addressfield exposed to SOLR in much the same way as the location module has enabled several primary facets (city/province/state etc).

it seems that for now, the most simple workaround is https://drupal.org/project/location_taxonomize because it works with addressfield, and then the taxonomy can be exposed directly to SOLR and presented as a facet, but that feels like a bit of a hack and puts the kabosh on the future for things like proximity search etc.

is that a request that should be pointed elsewhere?

Comments

drywall’s picture

+1 to this feature request

pinkonomy’s picture

+1

rszrama’s picture

Title: expose to SOLR as part of addressfield module (versus separate 'extras')? » Expose address field components as Solr facets
Version: 7.x-1.0-beta4 » 7.x-1.x-dev
Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

I'd be happy to have direct integration, but I've never done it myself. At this point, I don't even know if you mean some sort of direct integration with Solr or a secondary integration with a module like Search API or Facet API. Will need more information / someone with experience to post a patch for review.

brt’s picture

This would be great.

Example:
We use Addressfield to add address info to events

When searching (with solr facets) for Events, users need to find events in certain cities. Having the different Addressfield components available as solr facets would solve the Problem

mkalkbrenner’s picture

Status: Postponed (maintainer needs more info) » Fixed

Here's an add-on module that integrates Address Field with Apache Solr Search:
Apache Solr Address Field

It adds the structured address details to the solr index and provides corresponding facets.

rszrama’s picture

Status: Fixed » Needs work

If that's all that's needed, is there any reason not to roll that module into this? I hadn't ruled integration out in this module, just didn't have personal experience making it happen. : )

mkalkbrenner’s picture

The module currently provides the minimal set only to get started. But I think it should get some more features like facet widgets for spatial searches or facets grouping postal codes.
I'm not sure if that could be developed easily if the development process bases on patches.
BTW the integration with Search API will be different. I plan to do it in combination with elasticsearch.

mkalkbrenner’s picture

bojanz’s picture

Status: Needs work » Closed (duplicate)