Hello, As far as I know http://nolanlawson.com/2012/10/31/better-synonym-handling-in-solr/ has some usage in the industry.
On Fri, Jul 26, 2013 at 8:28 PM, Jack Krupansky <j...@basetechnology.com>wrote: > Hmmm... Actually, I think there was also a solution where you could > specify an alternate tokenizer for the synonym file which would not > tokenize on space, so that the full phrase would be passed to the query > parser/generator as a single "term" so that it would generate a phrase (if > you have the autogeneratePhraseQuery attribute of the field type set to > true.) But, I don't recall the details... and it's not the default, which > maybe it should be. > > > -- Jack Krupansky > > -----Original Message----- From: Furkan KAMACI > Sent: Friday, July 26, 2013 12:18 PM > To: solr-user@lucene.apache.org > Subject: Re: Synonym Phrase > > > Why Solr does not split that terms by *;* I think that it both split > by *;* and white space character? > > 2013/7/26 Jack Krupansky <j...@basetechnology.com> > > Well, that's one of the areas where Solr synonym support breaks down. The >> LucidWorks Search query parser has a proprietary solution for that >> problem, >> but it won't help you with bare Solr. Some people have used shingles. >> >> In short, for query-time synonym phrases your best bet is to parse the >> query at the application level and generate a Solr query that has the >> synonyms pre-expanded. >> >> Application preprocessing could be as simple as scanning for the synonym >> phrases and then adding "OR" terms for the synonym phrases. >> >> -- Jack Krupansky >> >> -----Original Message----- From: Furkan KAMACI >> Sent: Friday, July 26, 2013 10:53 AM >> To: solr-user@lucene.apache.org >> Subject: Synonym Phrase >> >> >> I have a synonyms file as like that: >> >> cart; shopping cart; market trolley >> >> When I analyse my query I see that when I search cart these becomes >> synonyms: >> >> >> cart, shopping, market, trolley >> >> so cart is synonym with shopping. How should I define my synonyms.txt file >> that it will understand that cart is synonym to "shopping cart"? >> >> > -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid Dynamics <http://www.griddynamics.com> <mkhlud...@griddynamics.com>