Forum

Thread tagged as: Question

Search - results even if not 100% match

Is there anyway to alter the search so it brings up part match results?

e.g. I want all of the solicitors in my business directory to show (uses Blog app) if the user searches 'solicitor', instead of 'solicitors' - rather than just the one result

https://lovebedfordbusinesses.co.uk/search.php?q=solicitor https://lovebedfordbusinesses.co.uk/search.php?q=solicitors

Rich Hemery

Rich Hemery 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Not currently. The search uses MySQL's indexing, and that doesn't yet support stemming.

It is something we could conceivably implement on the application level, but it's a significant amount of work to support even a small selection of languages, let alone all the languages used by Perch customers. (I'm not sure how word stemming would work in Hebrew, for example!)

Thanks for clarifying. Am I right in thinking a workaround for this would be to create a 'keywords' field for each blog entry and get the search to look up this field as well as the PostDesc and the PostTitle?

edit and obviously put 'solicitor' for example as a keyword

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, that would be a good approach.

Ah, I can use the 'tag' already built in.

Thanks Drew.