The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

zhijiang (1) [Avatar] Offline
I followed sample code in the book for Synonyms search, but there comes out one problem, everything working fine if I search one word like 'beautiful', I can find Synonyms word successfully, but if I tried to find synonyms words for 'beautiful lady', the engineer only return those synonyms words for 'beautiful' even I defined for 'beautiful lady' in engineer class.

Anyone got same problem or have solutions for this?

Thanks in advance.
mike.mccandless (221) [Avatar] Offline
Re: Problem with Synonyms search
Unfortunately the example in LIA2 can only handle single word synonyms. You can have a look at Solr's synonym filter, which properly handles multi-word synonyms.