on ‎2018 Jan 31 4:00 PM
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.
Request clarification before answering.
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;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.