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

Solr Issue:Unrelavant results are coming when I am searching for any product(hybris 6.6.1 version)

Former Member
0 Likes
584

I am a trying to searching for unavailable product like "T6665444", but still am getting the search results of diffrent products. Ideally it should give message saying "No results found for this "T6665444". Could you suggest what is issue?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi Gangadhar, it is really difficult to tell without looking at your solr configuration file. Solr return search results based on tokens which get created out of 'text' type fields.

for example, Hybris out of box solr configuration has product name and description as text fields. The difference between string fields and text fields is that solr creates tokens out of text fields and not string fields. Also solr autosuggestion internally works on solr spellchecker so it starts doing smart corrections on what you type.

for example if you have a product name as "black tommy hilfigher leather bag", solr creates the following tokens (black, tommy, hilfigher, leather and bag). So if you type 'lether' which is close to leather, solr will do a spellcheck for you and try to return leather as a suggestion.

What tokens get created can also be controlled by configuring the tokenizer.

Back to your question, you might be getting these results because some product names and/or descriptions may contains either 'T6665444' or a word similar to this and that is why you see those search results

Answers (1)

Answers (1)

Former Member
0 Likes

HI Saurab, thank a lot for the detailed explanation.