By s_oneill on
I know you could use simple boolean OR to get e.g all nodes containing 'color' as well as 'colour', but is there a module or some other functionality avaiable to automate this, e.g by maintaining a list of synonyms?
A couple of years back I used another CMS (PostNuke) which had this very useful functionality: i.e if a user searched for particular term (e.g 'color') all nodes containing one of a list of specified synonyms (e.g 'colour') would also be returned (essentially replacing the search term with an OR separated list of synonyms).
Comments
You can specify synonyms for
You can specify synonyms for taxonomy terms on a per term-basis. You'll have to create a vocabulary and add terms to it. When you create/edit a term, you may specify synonyms.
Not taxonomy, but plain text search
I'm not thinking about taxonomy or vocabulary structures, but plain old string searches.
The drupal search engine is based on indexing the text in nodes (in my particular case, every word more than 5 characters long).
You can search and find any text (5+ characters long in my case), whether its a taxonomy term or not.
I suspect, this functionality is not part of the drupal core and I've not been able to find an appropriate module -- there are a few language specific modules (e.g German stemmer), which can generate synonyms based on the particular way in which words are postfixed in (in english, eg: work, -ing, -ed, -s, etc...), but thats somewhat different to what I suggest.
Hmm... aside from the
Hmm... aside from the synonyms in taxonomy, I'm not aware of anything else that might help automate this. Maybe someone else is, though.
new module, perhaps
Perhaps, this is the project I should try to code myself ... seems a little daunting though...