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

Implement Solr search with white spaces

Former Member
0 Likes
1,210

Hi Experts, I am implementing solr search in a B2B website where we are searching on product names that contain whitespaces between them, like Hot Rolled Sheet, Metallic coated sheet etc. But the problem is, whenever we search with this whole term "Hot Rolled Sheet", it is not fetching any results since Solr is not able to work on the whitespaces in this term. Can anyone please help on this, as to how to make solr search on whitespace contained phrases.

Thanks & Regards, Suranja

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Likes

Enable the Phrase Search on the product name indexed property ,it will enable the whole phrase search.Let us know if it worked.

Former Member
0 Likes

product name is indexed property type as text_en. Have tried with string as well, but it is not working.

rohit31_raj92
Active Participant
0 Likes

Hi Did you tried searching product name on solr dashboard using query field: [q] : name_string:Hot Rolled Sheet and see if you gets result on dashboard, so you can be confirmed whether issue is with solr or with response. If you able to get result on solr on dashboard then do check whether you getting proper result in result populator.