2014-02-28 2 views
3

제품 목록 페이지에 표시된 패싯 탐색에서 추가 특성을 추가하는 방법을 알고 계신 분이 있습니까? 지금까지는 가격대 만 선택할 수 있지만 브랜드 및 기타 필터를 추가하려면 hMC를 통해 유지 관리하는 방법을 알고 있습니까?Hybris 패싯 탐색

+0

해당 내용이 포함 된 포럼 및 위키를 참조하십시오. –

+1

HMC> 시스템> 패싯 구성. 견본 impexes를위한 sampleedata 연장을보십시오, 나는 yaccelerator에도 impex가 있을지도 모른다라고 생각한다. –

+0

새로운 패싯 속성을 생성하기 위해 solr.impex 파일을 사용하십시오. 의류 또는 전자 상점 slor.impex 파일을 어떻게 만들 었는지 보여줍니다. 때때로 hmc를 통해 패싯 인덱스를 업데이트해야합니다. –

답변

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

가장 좋은 방법은 예제를위한 아래 상자에서 제공되는 것을 살펴 가지고하는 것입니다 ... 나는 그것이 SOLR 구성과 함께 할 수있는 뭔가가 있다고 생각하지만, 나는 hybris에 비교적 새로운 해요

: 당신이 측면 정의를 찾을 내부 전자 저장, 파일 /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>을 선택하십시오. 이제 테이블의 모든 제품 속성을 볼 수 있습니다. 그리고 주위에 몇 가지 체크 박스가 있습니다.

제품 내부의 특성에 대한 검색 설정입니다. 당신은 몇 가지 다른 점을 유지해야하기 때문에

0

불행하게도 당신은 단지 그것을 실 거예요 작업, HMC를 통해 새로운 solrIndexedProperty에게 solrIndexedType에 추가하고이 작동 희망 할 수 없습니다

  1. 만약 당신의 새 속성은 복잡한 객체입니다 (예 : Brand, Price, Unite, ...) 값 제공자을 만들어 객체를 간단한 원시 데이터 (문자열, int, double ...)로 변환하고 send 예를 들어 Brand to Brand.name 및 Price to Price.formattedValue ...로 색인 생성됩니다.
  2. 그런 다음 solrIndexedProperty 값을 앞면에 FacetPopulator을 통해 노출시켜야합니다.