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

Weird behaviour of Solr text search in Hybris

Former Member
0 Likes
946

In my project,a strange problem is occuring.We have configured the Solr to use four attributes(namely code,summary, name and keywords of product) for text search.When we search for something,the products not having exact match also appear and that too in higher ranking.How to find out the issue and how to resolve this problem?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes
Former Member
0 Likes

: Is it happening when you are doing a multi word search ? For example air conditioner with a space in between. It happens because solr does a OR between two words. You can code to change it to AND. The downside is that you will get fewer results.

Former Member
0 Likes

,thanks a lot for your response.The text is only a single word text like "Condit" but results with "Condiment" and not "Condit" also appear in result.

Former Member
0 Likes

Sounds like a stemming issue. Stemming is part of the filter chain for the text type as configured on the Solr server in the file schema.xml. You can try out how the filter chain modifies the search term in the Solr Admin tool using the Analysis menu entry.