有没有人有一个想法如何添加额外的属性在我的Facet导航显示在产品列表页面上?到目前为止,我只能选择价格范围,但我想添加品牌和其他过滤器,你知道如何通过hMC维护它吗?我认为这是与Solr的配置,但我相当新的hybris ...Hybris Facet导航
3
A
回答
0
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
3
最好的办法是看看什么是提供开箱即用,在例如电子商店,打开文件/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::::
您需要记住的是,对于其他文字/原子的任何定制类型,您需要创建自己的提供程序。对于每个基本的Literal/Atomic类型(String,double,integer,boolean),commerceClassificationPropertyValueProvider就足够了。
0
添加更多的产品属性,如品牌,名称,any_other_attribute,你应该去:
HMC>系统>刻面搜索>索引类型
。搜索与空白字段。
现在选择<Index TYPE>
like ** product。现在您可以在表格中看到所有产品属性。他们周围有一些复选框。
这些是产品内部属性的搜索设置。
0
可惜你不能只是简单的添加新的solrIndexedProperty到solrIndexedType通过HMC并希望它会工作,它不会工作,因为你必须保持一些其他点:
- 如果你的新属性是一个复杂的对象,例如(品牌,价格,联合,...),您必须创建一个价值提供商将该对象转换为简单的原始数据(字符串,int,double,...)并发送它可以被索引,例如,Brand to Brand.name和Price to Price.formattedValue ...
- 然后,您必须通过FacetPopulator将新的solrIndexedProperty值展示给正面。
0
如果您有hybris wiki访问,那么您可以轻松完成此操作。在商业路径中,他们已经涵盖了关于方面搜索。请看看它。 https://wiki.hybris.com/display/R5T/Tweaking+SolR+Attributes+and+Facets
相关问题
- 1. Hybris:将不同的solr facet合并为一个
- 2. Hybris搜索页面facet过滤器数量有限。
- 3. IntelliJ干净导入Hybris项目
- 4. hybris:通过impex导入编码密码
- 5. 无法在hybris
- 6. CQ5 hybris集成
- 7. Hybris产品配置
- 8. Primefaces facet footer style
- 9. ggplot2 move facet layout
- 10. ggjoy facet with ggtree
- 11. Elasticsearch facet size
- 12. ggplot2 facet margin
- 13. Solr facet分页
- 14. elasticsearch facet limit
- 15. ggplot2 boxplot facet wrap
- 16. Elasticsearch prefixFilter for facet
- 17. Hybris Admin用户访问
- 18. Hybris-分离hybris和控制台日志
- 19. (Sitecore)与子导航导航
- 20. Drupal 8导航menutrail导航
- 21. mod_jk hybris loadbalancer
- 22. Twitter的引导导航栏导航
- 23. Algolia搜索Facet geolocation
- 24. RoR - Facet Filtering方法
- 25. add + to facet结果
- 26. R ggplot geom_bar facet dodge
- 27. 在款Hybris
- 28. Hybris Platform文档
- 29. Hybris SVG集成
- 30. 中的hybris 5.7
阅读论坛和wiki涵盖的内容 – 2014-02-28 10:47:44
HMC> System> Facet Config。在samplesata扩展中查看示例impexes,我认为yaccelerator中也可能存在impex。 –
使用solr.impex文件创建新的构面属性。看看服装或电子商店slor.impex文件也是如何创建的。有时您还需要通过hmc更新构面索引。 –