Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
drywall CreditAttribution: drywall commented+1 to this feature request
Comment #2
pinkonomy CreditAttribution: pinkonomy commented+1
Comment #3
rszrama CreditAttribution: rszrama commentedI'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.
Comment #4
brt CreditAttribution: brt commentedThis 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
Comment #5
mkalkbrennerHere'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.
Comment #6
rszrama CreditAttribution: rszrama commentedIf 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. : )
Comment #7
mkalkbrennerThe 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.
Comment #8
mkalkbrennerI added a facet for administration areas: http://drupalcode.org/project/apachesolr_addressfield.git/commit/6d1f82f
Comment #9
bojanz CreditAttribution: bojanz commentedDuplicate of #1431592: Integrate with ApacheSolr/FacetAPI module as a facet.