I would like addressfield to intergrate with the apachesolr module to provide a state or city facet. How could this be accomplished?

Comments

devonwarren’s picture

Title: Integrates with ApacheSolr module as a facet » Integrate with ApacheSolr module as a facet
adam_b’s picture

+1

devonwarren’s picture

Title: Integrate with ApacheSolr module as a facet » Integrate with ApacheSolr/FacetAPI module as a facet
milesw’s picture

One way to do this right now is through Location Taxonomize. It will automatically build/maintain a hierarchical taxonomy from Address Field data. Facet API already integrates well with taxonomy, even hierarchical ones, so you'll be good to go.

msti’s picture

+1

andrew_mallis’s picture

+1

stevenx’s picture

+1

Anonymous’s picture

+1

bojanz’s picture

Issue summary: View changes
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

user654’s picture

.

darol100’s picture

I have same question that @pinkonomy.

Does this also work for Search api?

n20’s picture

The address_field module works for search_api & search_api_solr. One thing i discovered though is that country fields are indexed with their 2-letter values and the full name. For example Canada goes into the index as 'ca' & 'canada'. It would be nice to be able to drill down the country field into it's components and tell serch_api_solr exactly what to index.

nedjo’s picture

@N20

One thing i discovered though is that country fields are indexed with their 2-letter values and the full name.

See #1269608: Integrate Addressfield with Search API.