Using Synonym Graph Filter suppresses default search behaviour in Solr

328 Views Asked by At

I am using solr 8.3.

After I included Synonym Graph Filter in my managed-schema file, I have noticed that if the query string contains a multi-word synonym, it considers that multi-word synonym as a single term and does not break it,further suppressing the default search behavior.

Here "soap powder" is the search query which is also a multi-word synonym in the synonym file.

s(104254535,1,'soap powder',n,1,1).
s(104254535,2,'built-soap powder',n,1,0).
s(104254535,3,'washing powder',n,1,0).

I am sharing some screenshots for understanding the problem-

without Synonym Graph Filter (2 docs returned) enter image description here

with Synonym Graph Filter (2 docs expected, only 1 returned)

enter image description here

Has anyone experienced this before? If yes, is there any workaround?

0

There are 0 best solutions below