Hi, Do you have index-time or search-time synonym expansion? Doesn't work with either?
Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ----- Original Message ---- > From: Peter Hickman <[EMAIL PROTECTED]> > To: solr-user@lucene.apache.org > Sent: Thursday, June 5, 2008 5:22:27 AM > Subject: Highlighting and Synonyms > > > I have some data that contains phrases such as > > 1) "Decisions Relating to Cardiopulmonary Resuscitation: Model Information > Leaflet. British Medical Association" > 2) "to ensure that cardiopulmonary resuscitation (CPR) may safely proceed" > > The data will always contain the phrase "cardiopulmonary resuscitation" so > we have a synonym > > CPR => cardiopulmonary resuscitation > > So if the user searches for CPR they get the results they are looking for. > So far so good. However the returned text only highlights the phrase > "cardiopulmonary resuscitation" and the user would like to see the text > "CPR" additionally highlighted if it occurs in the text. > > There doesn't seem to be anything that I can do with the synonym file to get > this to work. Changing the entry to "CPR => cardiopulmonary resuscitation, > CPR" does not help, on fact it results in the search failing to find the > data as it now requires the document to contain the text "CPR" which is not > the case. > > Any ideas? > > > -- > View this message in context: > http://www.nabble.com/Highlighting-and-Synonyms-tp17665705p17665705.html > Sent from the Solr - User mailing list archive at Nabble.com.