Forum: Ferret Searching with synonyms

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
8810c87f731b95a82aa40ebdfb78291e?d=identicon&s=25 Arne De Herdt (airslash)
on 2011-04-08 08:41

I'm currently working on a project, which is a search engine, and I need
the ability to search the index, created with Ferret, using synonyms.
I have based my current code on following articles:

The code seems to be working, in that I don't receive any errors and
that I can search for words actually existing inside the documents that
have been indexed, but when I try to use a synonyms, defined in my YAML
file, i don't receive any matches.

I've taken over the exact classes from the examples and read through the
Ferret pages to see if I was missing something, but it seems the
synonyms are not beeing loaded by the SynonymEngine class.
I can probably go around this by retrieving them manually before the
search and do an OR search on the array of words, but is there something
extra that needs to be done?
This topic is locked and can not be replied to.