lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: multi-word synonyms with multiple matches
Date Thu, 02 Jul 2009 17:57:13 GMT

: vp,vice president
: svp,senior vice president
: However, a search for "vp" does not return results where the title is 
: "senior vice president".  It appears that the term "vp" is not indexed 
: when there is a longer string that matches a different synonym.  Is this 
: by design, and is there any way to make solr index all synonyms that 
: match a term, even if it is contained in a longer synonym?  Thanks!

You haven't given us the full details on how you are using the 
SynonymFilterFactory ("expand" true or false?) but in general: yes the 
SynonymFilter finds the longest match it can.

if every svp is also a vp, then being explict in your synonyms (when doing 
index time expansion) should work...

vp,vice president
svp,senior vice president=>vp,svp,senior vice president


View raw message