Alastair Moore wrote:
> Hello all,
> 
> Quick question (possibly!) - I've got a few records indexed and doing a 
> search for 'test' reports in no hits even though I know the word 'tests' 
> exists in the indexed field. Doing a search for 'tests' produces a 
> result. I would have thought that 'test' would match 'tests' but no such 
> luck!
> 
> Thanks,
> 
> Alastair


Alastair - if you only want to find the plural of something and not the 
full stem of words then ROR has a plurisation capability. It will take 
test and bring back all the plurals or take tests and bring back the 
singulars. You can then search on all these words. It is not a full 
stemmer but in some circumstances perhaps this may be all that you are 
wanting to do.

One thing to watch that caught us out was that as standard 
pluralistation of words with two 'ss' at the end does not work properly. 
For example, "glass" would come back as "glas" from the pluralizer. 
There is a simple fix that is in the ROR forum that covers all this off.

I would only use the ror pluraliser if all you are looking to do is 
bring back plurals of words and are not interested in the full stemming 
of the words. For example, if you do a search on "tax" full stemming 
should also search on "taxes" and "taxation". Pluralise would not search 
on "taxation".

Hope this helps.

Clare

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to