In Endeca, A Dimension can be created using multiple properties.
Example: More Ways to Shop dimension should contain 3 different properties sale, online, new so that user should be able to select multiple refinements under one dimension.
Following are the ways to achieve it :-
1. Using Product-sku-output-config.xml :
Add outpur-name and use same name for all properties those needs to be combined for one Dimension
<property name="online" is-dimension="true" type="string" multiselect-type="multi-or" output-name="product.moreWaysToshop"/>
<property name="sale" is-dimension="true" type="float" multiselect-type="multi-or" output-name="product.moreWaysToshop"/>
<property name="new " is-dimension="true" type="float" multiselect-type="multi-or" output-name="product.moreWaysToshop"/>
2. Developer Studio:
Map dimension to multiple source properties as per screen shot below: -
3. Index-config.json -
This can be used for CAS based indexing where we have multiple source and joined using Endeca CAS system. use following examples to add mapping to index-config.xml and can be found under <<Endeca_App>>/config/mdex folder
"product.moreWaystoShop" : {
"sourcePropertyNames" : [ "new" ],
"isAutogen" : true,
"jcr:primaryType" : "endeca:dimension"
},
"product.moreWaystoShop" : {
"sourcePropertyNames" : [ "online" ],
"isAutogen" : true,
"jcr:primaryType" : "endeca:dimension"
},
"product.moreWaystoShop" : {
"sourcePropertyNames" : [ "sale" ],
"isAutogen" : true,
"jcr:primaryType" : "endeca:dimension"
}
Output would be looks like below in Endeca jspref :-
No comments
Post a Comment
Note: Only a member of this blog may post a comment.