Try the Solr Admin UI analysis page and see how finagle and æggeblomme are analyzed at BOTH index and query time.

The "=>" rule does a replacement, while the pure comma rules support equivalence.

Your query-time and index-time analyzers need to be "compatible", which sometimes means that they can't be identical - since replacement rules mean that a term will not appear in the index.

-- Jack Krupansky

-----Original Message----- From: Peter Kirk
Sent: Monday, June 24, 2013 4:10 AM
To: solr-user@lucene.apache.org
Subject: Help with synonyms

Hi

I have a synonyms file that looks like this:

finagle => æggeblomme
frumpy => spiste
canard, æggeblomme
corpse, spiste

(It's just an example, and has no real meaning).

The issue I don't understand is that a search for "finagle" does not find documents containing "æggeblomme" (which means "egg yolk"). But all the others find the corresponding words. (For example, "frumpy" finds "spiste", and "canard" finds "æggeblomme").

Why could this be?

Thanks,
Peter






Reply via email to