Skip to Content
0
Former Member
Mar 30, 2015 at 12:33 PM

Solr split by spaces

236 Views

Hi experts!

We want to change standard hybris behavior in the formation of a solr query string. OOTB if we enter search string "asus b400vm" (without double quotes) then hybris form for solr following line:

 manufacturerAID_string:(asus^100.0 OR b400vm*^50.0 OR asus\ b400vm*^100.0 OR asus*^50.0 OR b400vm^100.0 OR asus\ b400vm^200.0)

I.e. Hybris split incoming line by spaces. We want to change this line to:

 manufacturerAID_string:(asus\ b400vm^200.0 OR asus\ b400vm*^100.0)

How we can do it? Which java classes we need to override to do this?

Thanks