cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Synonyms in the hybris upgrade 6.2 aren't working as expected

svintha
Explorer
0 Likes
2,555

Hi , We have recently upgraded hybris to version 6.2 right after that the synonyms are not correctly working .

We have created simple synonyms and did a full indexing , Even then the synonims are not working when we search for the actual synonymFrom word .Infact solr should fetch the synonymTo word matching results . Example : When we search for "sairamreddy" in the storefront solr should also bring the results of canon which is not currently working . # Synonyms

INSERT_UPDATE SolrSynonymConfig;facetSearchConfig(name)[unique=true,default=$facetSearchConfigNameMain];language(isocode)[unique=true,default=$indexLanguagesMain];synonymFrom[unique=true];synonymTo

;;;"sairamreddy";"canon"

Accepted Solutions (1)

Accepted Solutions (1)

svintha
Explorer
0 Likes

Hi All we have got the solution for this this started working fine after making changes to schema.xml in solr by adding the below entries , After the upgrade these entries were missing . We have observed this as compared to OOTB version we have . after adding entries this worked fine .

 **<filter class="solr.SynonymFilterFactory" ignoreCase="true" synonyms="synonyms.txt"/>
 <filter class="solr.ManagedSynonymFilterFactory" managed="en" />**

Answers (4)

Answers (4)

Former Member
0 Likes

any updates on this one ? I am seeing the same issue with 6.4

svintha
Explorer
0 Likes

Hi this started working fine after making changes to schema.xml in solr by adding the below entries, After the upgrade, these entries were missing. We have observed this as compared to OOTB version we have . after adding entries this worked fine.

 <filter class="solr.SynonymFilterFactory" ignoreCase="true" synonyms="synonyms.txt"/>
  <filter class="solr.ManagedSynonymFilterFactory" managed="en" />
Former Member
0 Likes

Hi everyone. I hope it will help. Go to backoffice -> facet search configuation. Copy index name.

than use code, but edit it correctly. In my exemple For webWorld-usIndex code must look next way:

INSERT_UPDATE SolrSynonymConfig;facetSearchConfig(name)[unique=true,default=$facetSearchConfigNameMain];language(isocode)[unique=true,default=$indexLanguagesMain];synonymFrom[unique=true];synonymTo ;"webWorld-usIndex";"en_US";"JennAir";"Jenn-Air"

do not forget to add language (if you will add synonyms manually back-office will force you to choose language), in my example it will be en_US

after that import impex, in back-office you will be able to see this synonym.

re-index solr, or just wait until it will re-index itself. After that synonyms must work.

if it will help don't forget to vote :).

Former Member
0 Likes

Hi , are you able to see the synonyms in solr admin console.

Thanks,

Venki

0 Likes

any updates on this one ? I am seeing the same issue with 6.7

Former Member
0 Likes

Hi,

Any solution found on 'Synonym' text search, Even I'm facing issue in Hybris6.7 . I have configured in solr impex files, but its not working as expected. Only free text search is working.

svintha
Explorer
0 Likes

Hi and @mo this started working fine after making changes to schema.xml in solr by adding the below entries , After the upgrade these entries were missing . We have observed this as compared to OOTB version we have . after adding entries this worked fine .

 ***<filter class="solr.SynonymFilterFactory" ignoreCase="true" synonyms="synonyms.txt"/>
 <filter class="solr.ManagedSynonymFilterFactory" managed="en" />***