ATG-Endeca: Range Dimension

Creating Range dimension
This documentation will help you on getting the Price as Range dimension using ATG-Endeca. Ease while creating range price dimension using developer studio UI. But for creating these dimension used for ATG-Endeca integration is a bit of work.
An example:
demo.price
               Under $100
               $100 – $500
               $500 – $1000
               Over $1000
For this we need to create mapping in “dimension_values.csv” and “schema.csv”.

schema.csv
Define required dimensions and its source mappings
attribute.name
attribute.type
attribute.display_name
attribute.offline_sort
attribute.record_filterable
attribute.rollup_key
attribute.search_interface
sku.margin
property
TRUE
demo.price
dimension
Price
All
attribute.search.searchable
attribute.search.wildcard
attribute.show_with_list
attribute.show_with_record
attribute.source_name
attribute.property.data_type
attribute.dimension.autogen
sku.margin
decimal
activePrice
attribute.dimension.compute_refinement_counts
attribute.dimension.dyn_ranking_enabled
attribute.dimension.dyn_ranking_refinement_count
attribute.dimension.dyn_ranking_more
attribute.dimension.dyn_ranking_sort
attribute.dimension.hidden
attribute.dimension.hierarchy_dim_search
attribute.dimension.hierarchy_record_search
attribute.dimension.multiselect_type
attribute.dimension.refinements_sort_order
numeric
dimension_values.csv
dimval.dimension_spec
dimval.spec
dimval.display_name
dimval.parent_spec
dimval.match_type
demo.price
demo.price
Price Range
demo.price
under_100
Under $100
demo.price
range
demo.price
100_to_500
$100 – $500
demo.price
range
demo.price
500_to_1000
$500 – $1000
demo.price
range
demo.price
over_1000
Over $1000
demo.price
range
dimval.display_order
dimval.classify_synonym
dimval.search_synonym
dimval.range.comparison_type
dimval.range.lower_bound
dimval.range.lower_bound_inclusive
dimval.range.upper_bound
dimval.range.upper_bound_inclusive
1
decimal
100
FALSE
2
decimal
100
TRUE
500
FALSE
3
decimal
500
TRUE
1000
FALSE
4
decimal
1000
TRUE
If we miss to add entries in “schema.csv” we get following error
 
FORGE   {baseline}: (AdapterRunner): Unable to find corresponding attribute definition for taxonomy with root node spec ‘demo.price’, you must define a dimension in the schema feed
 com.endeca.edf.adapter.AdapterException: Unable to find corresponding attribute definition for taxonomy with root node spec ‘demo.price’, you must define a dimension in the schema feed
          at com.endeca.itl.fcm.integration.cadk.ifdi.TaxonomyGenerator.execute(TaxonomyGenerator.java:261)
                at com.endeca.itl.fcm.integration.cadk.ConfigurationAdapter.execute(ConfigurationAdapter.java:118)
                at com.endeca.esource.springadapter.SpringDelegateAdapter.execute(SpringDelegateAdapter.java:60)
                at com.endeca.edf.adapter.AdapterRunner.run(AdapterRunner.java:168)
  at com.endeca.edf.adapter.AdapterRunner.main(AdapterRunner.java:43)
Once the changes are done run the baseline using component “/atg/commerce/endeca/index/ProductCatalogSimpleIndexingAdmin”
1 2 3 20
Let's Share
Exit mobile version