I would like to allow users to search node location using location city with synonyms.
- New York
- New York City
should bring the same search results.
How to do this ?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
I have created the related feature request here.
If this feature is not yet available in the location module, I could maybe use Views, create the indexed synonyms as taxonomy terms vocabulary and term reference field
Content: Location Synonyms, modify the view's
Global: combine filters filtersetting
Choose fields to combine for filteringas
Content: Location Synonyms? This would require tagging each node
location synonymsmanually or would require setting up a Rule (using Rules contrib module) that would add these synonyms automatically depending on the
Location: Cityselected. The standard Drupal search would index these tags.
It would be better to have it either inside the Location module or as an additional contributed helper module.
There is also a contributed module Location Taxonomize that might help in achieving this.