Hi, It looks like you have not seen a pretty detailed page on Synonyms on the Solr wiki. Have a look, I think you'll find answers to your questions there.
Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ----- Original Message ---- > From: payalsharma <[EMAIL PROTECTED]> > To: solr-user@lucene.apache.org > Sent: Thursday, October 16, 2008 9:55:55 AM > Subject: How Synonyms work in Solr > > > Hi, > > Please explain that how the below mentioned synonyms patterns work in Solr > Search as there exists several seperators for synonym patterns: > > 1. > > #Explicit mappings match any token sequence on the LHS of "=>" > #and replace with all alternatives on the RHS. These types of mappings > #ignore the expand parameter in the schema. > > #Examples: > i-pod, i pod => ipod, > sea biscuit, sea biscit => seabiscuit > > > 2. > > #Equivalent synonyms may be separated with commas and give > #no explicit mapping. In this case the mapping behavior will > #be taken from the expand parameter in the schema. This allows > #the same synonym file to be used in different synonym handling strategies. > > #Examples: > ipod, i-pod, i pod > foozball , foosball > universe , cosmos > > 3. > # If expand==true, "ipod, i-pod, i pod" is equivalent to the explicit > mapping: > ipod, i-pod, i pod => ipod, i-pod, i pod > # If expand==false, "ipod, i-pod, i pod" is equivalent to the explicit > mapping: > ipod, i-pod, i pod => ipod > > > 4. > #multiple synonym mapping entries are merged. > foo => foo bar > foo => baz > #is equivalent to > foo => foo bar, baz > > > 5. > Explain the meaning of this pattern: > > a\=>a => b\=>b > a\,a => b\,b > > Questions: > > A) Among the following what all characters works as delimeters : > Whitespace(" ") comma(",") "=>" "\" "/" > B) Also, please let us know whether there exists certain other patterns > apart from the above mentioned ones. > C) In the pattern : ipod, i-pod, i pod > Here how we will determine that "i pod" has to be treated as a single > word though it contains Whitespace. > -- > View this message in context: > http://www.nabble.com/How-Synonyms-work-in-Solr-tp20014192p20014192.html > Sent from the Solr - User mailing list archive at Nabble.com.