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

Backoffice 1905 not showing indexproperties in adaptive search perspective.

Former Member
913

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.

Accepted Solutions (0)

Answers (8)

Answers (8)

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

Former Member

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>

Former Member
0 Kudos

Tried but did not work for me.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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?

Former Member
0 Kudos

No Prakash.

Former Member
0 Kudos

amrita,

did u get solution for this?