Hybris面导航
有人知道如何在产品列表页面上显示的my Facet Navigation中添加其他属性吗?到目前为止,我只能选择价格范围,但我想添加品牌和其他过滤器,你知道如何通过hMC维护它吗?我认为这和solr的配置有关,但我对hybris还是相当陌生的 There are two ways to do this 1.Impex: Go to solr.impex file and add the facet(=true) property to SolrIndexedProperty type header Ex: INSERT_UPDATE SolrIndexedProperty;solrIndexedType(identifier)[unique=true];name[unique=true];type(code);sortableType(code);currency[default=false];localized[default=false];multiValue[default=false];facet[default=false];facetType(code);facetSort(code);priority;visible;fieldValueProvider;customFacetSortProvider;rangeSets(name);$classAttributeAssignment ;electronicsProductType;Megapixel, 63 ;double;; ; ; ;true;MultiSelectOr;Custom;1000;true;commerceClassificationPropertyValueProvider;numericFacetSortProviderDesc;MegaPixelRange;57:::Megapixel, 63:::: 2.hmc: hmc --> System --> Facet Search --> SolrItemType --> select solritemtype --> add solrindexproperties --> select facet checkbox to true 有两种方法可以做到这一点 1.Impex:转到solr.Impex文件,将facet(=true)属性添加到SolrIndexedProperty类型头中 例如:插入更新SolrIndexedProperty;solrIndexedType(标识符)[unique=true];名称[unique=true];类型(代码);可排序类型(代码);货币[默认值=false];本地化[默认值=false];多值[默认值=false];facet[default=false];类型(代码);分面排序(代码);优先;看得见的fieldValueProvider;customFacetSortProvider;范围集(名称)$类属性指定 ;电子产品类型;百万像素,63;双重的是的;多选;习俗;1000;是的;商业分类财产价值提供者;numericFacetSortProviderDesc;兆像素范围;57::百万像素,63::: 2.hmc:hmc-->系统-->刻面搜索-->SolrItemType-->选择SolrItemType-->添加solrindexproperties-->选择刻面复选框为trueHybris面导航,hybris,Hybris,有人知道如何在产品列表页面上显示的my Facet Navigation中添加其他属性吗?到目前为止,我只能选择价格范围,但我想添加品牌和其他过滤器,你知道如何通过hMC维护它吗?我认为这和solr的配置有关,但我对hybris还是相当陌生的 There are two ways to do this 1.Impex: Go to solr.impex file and add the facet(=true) property to SolrIndexedProperty type heade
最好的方法是查看开箱即用的内容,例如在电子商店下,打开文件/electronicsstore/resources/electronicsstore/import/sampledata/stores/electronics/solr.impex 在里面,您可以找到刻面定义,例如,这是Megapixles的刻面定义:
INSERT_UPDATE SolrIndexedProperty;solrIndexedType(identifier) unique=true];name[unique=true];type(code);sortableType(code);currency[default=false];localized[default=false];multiValue[default=false];facet[default=false];facetType(code);facetSort(code);priority;visible;fieldValueProvider;customFacetSortProvider;rangeSets(name);$classAttributeAssignment
;electronicsProductType;Megapixel, 63 ;double;; ; ; ;true;MultiSelectOr;Custom;1000;true;commerceClassificationPropertyValueProvider;numericFacetSortProviderDesc;MegaPixelRange;57:::Megapixel, 63::::
您需要记住的是,对于除文字/原子之外的任何自定义类型,您都需要创建自己的提供者。对于每个基本的文字/原子类型(字符串、双精度、整数、布尔值),commerceClassificationPropertyValueProvider就足够了。要添加更多的产品属性,如品牌、名称、任何其他属性,您应该转到: HMC>系统>方面搜索>索引类型 。用空白字段搜索 现在选择像**产品一样的
。现在您可以在表中看到所有产品属性。他们周围有一些复选框
这些是产品内部属性的搜索设置。不幸的是,您不能简单地通过HMC将新的solrIndexedProperty添加到solrIndexedType,希望它能起作用,因为您必须维护一些其他点:
如果您具有hybris wiki访问权限,则可以轻松完成此操作。在商业跟踪中,他们介绍了方面搜索。请看一看。
阅读论坛和wiki,其中包括HMC>System>Facet配置。在sampledata扩展中查找示例弹射,我认为YaAccelerator中也可能有弹射。使用solr.impex文件创建新的facet属性。看看服装或电子商店slor.impex文件,也看看他们是如何创建的。有时您还需要通过hmc更新刻面索引。