on 2020 Apr 30 7:41 AM
Hello All,
we are migrating from SAP Commerce 1808 to 1905, as part of that we are migrating commerce search to adaptive search. while creating boost rules in backoffice index properties are not getting populated in widget, getting below error on screen

error in log as below:
Rendering of editor failed. null
Is there anything wrong with data provider. As per config asIndexPropertyDataProvider is used for populating this field however it is not fetching any data.
Request clarification before answering.
After overriding getIndexPropertyTypeInfo method of
de.hybris.platform.solrfacetsearch.solr.impl.DefaultSolrIndexedPropertyTypeRegistry, it worked for me. Root cause was below highlighted line of code , it was throwing NullpointerException :
try
{
indexedPropertyType.setJavaType(Class.forName(clazz));
} }
Regards,
Amrita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Amrita,
its is resolved by adding our custom types in index properties in solrfacetsearch-spring.xml
example:
<alias name="defaultIndexPropertyTypeMapping" alias="indexPropertyTypeMapping" />
<util:map id="defaultIndexPropertyTypeMapping">
<entry key="boolean" value="java.lang.Boolean" />
<entry key="string" value="java.lang.String" />
<entry key="text" value="java.lang.String" />
<entry key="sortabletext" value="java.lang.String" />
<entry key="int" value="java.lang.Integer" />
<entry key="float" value="java.lang.Float" />
<entry key="double" value="java.lang.Double" />
<entry key="date" value="java.util.Date" />
<entry key="long" value="java.lang.Long" />
</util:map>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tried but did not work for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prakash,
Thank you for your response. As solrfacetsearch-spring.xml is an OOTB file we have already extended it in our custom code. New definition already has list of all custom types of index properties.
Should I still update definition in OOTB file, any platform update require?
Regards,
Amrita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No Prakash , I am able to create a searchprofile, in that have defined searchconfiguration. During search configuration creation I am trying to creat boost rule which opens this wizrd where I am getting error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Amrita,
i doubt its not able to get indextedtype while creating new AsBoostRule object, it tries to get indexType={parentObject.searchConfiguration.searchProfile.indexType}
above parentObject is AsBoostRule
so if its a new item searchConfigurationshould have to be set before calling the editor to render. but its not happening.
have u find any alternate approach to resolve this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No Prakash.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
amrita,
did u get solution for this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.