Hi.

I have about 600 nodes categorized with taxonomy on my image site http://www.free-jpeg-images.com . I am using the search module so users can search and find nodes.

What I found out, a bit too late, is that the search is not intelligent enough to include plurals. So if somebody is looking for children, my nodes tagged child will not appear in the result list.

I am looking for an elegant solution to have the plural included. As a convention, all my kw are singular.

Any hints?

Thanks,
Yoel

Comments

seancorrales’s picture

I'd try to use the 'synonyms' field that is built-in to taxonomy. You could add the plural versions of a taxonomy term there. I'm not sure if the search module searches the synonyms value so I'd recommend testing it out on a single term before you add synonyms to all your terms. Try adding the plural to your "child" taxonomy term. Then try searching for "children" and see if anything comes back. If not, try running cron.php and search again.

If that's no good, try looking at a replacement for the search module. I'm not a huge fan of the default drupal search module; I've found Finder (http://drupal.org/project/finder) to be a lot more flexible.

yoeld’s picture

Hi Droidenator,

Thanks for pointing to the finder module. I was not aware about it and will examine it.

Regarding the suggested usage of synonyms, I have already tried it. Indeed the search module is not aware of that information. Using the cron update and reindexing did not change anything to it.

Regards,
Yoel

seancorrales’s picture

Hm. If Finder doesn't read the synonyms, you'll probably have to apply plural versions of taxonomy terms yourself.

Try checking out Views Bulk Operations (http://drupal.org/project/views_bulk_operations). You can use it to add terms to nodes in bulk. Should speed things up a bit.

mcfilms’s picture

Alternatively, couldn't you modify your node.tpl.php to output the synonyms along with the taxonomy terms on each page? This would have the added benefit of making both keywords get indexed by outside search engines, like Google. You'd still have to manually bulk add the synonyms though.

A list of some of the Drupal sites I have designed and/or developed can be viewed at motioncity.com