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

Boost Rule not working ,its fetching all products instead of the product which have contain the searched word.

former_member474696
Discoverer
0 Likes
322

Hi, As the requirement is to show the product first then the recipe . I created boost rule and gave the propertyValue as Product and boostFactor as 600 but while searching its feting all the existing products then recipe . Ex: If I am searching for 'Pizza' it should fetch the products which have the whole word 'Pizza' in it then the recipe.
Can anyone suggest me on this.

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

vinay_malempati
Active Participant
0 Likes

You can use the below solr index property config to get the exact matches on top for code and name

INSERT_UPDATESolrIndexedProperty;solrIndexedType(identifier)[unique=true];name[unique=true];type(code);sortableType(code);currency[default=false];localized[default=false];multiValue[default=false];useForSpellchecking[default=false];useForAutocomplete[default=false];fieldValueProvider;valueProviderParameter;ftsPhraseQuery[default=false];ftsPhraseQueryBoost;ftsQuery[default=false];ftsQueryBoost;ftsFuzzyQuery[default=false];ftsFuzzyQueryBoost;ftsFuzzyQueryFuzziness;ftsWildcardQuery[default=false];ftsWildcardQueryType(code)[default=POSTFIX];ftsWildcardQueryBoost;ftsWildcardQueryMinTermLength ;$solrIndexedType;code;string;;;;;true;true;springELValueProvider;code;true;100;true;90;true;110;1;true;PREFIX_AND_POSTFIX;150; ;$solrIndexedType;name;text;sortabletext;;true;;true;true;springELValueProvider;getName(#lang);true;100;true;50;true;110;1;true;PREFIX_AND_POSTFIX;150;

former_member474696
Discoverer
0 Likes

Hi Vinay , thanks for your help but still issue not resolved . here is my code for boost rule(not working) :

INSERT_UPDATE SolrBoostRule;solrIndexedProperty(name, $solrIndexedType)[unique=true];operator(code)[unique=true];propertyValue[unique=true];boostFactor;solrSearchProfiles(code)[unique=true] ;itemType;EQUAL_TO;Product;600;globalcatalog-search-profile