Searching with synonyms

Hello,

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:

http://www.ruby-forum.com/topic/114402
http://www.davebalmain.com/trac/wiki/HowTos

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?