You configure the structure of hierarchical dimensions by editing a file named rs_baseline_dimvals.xml. For information about recommended ways to structure hierarchical dimensions, refer to the Oracle Commerce Guided Search Concepts Guide.

A default version of the rs_baseline_dimvals.xml file is provided with the Discover Electronics reference application in the folder Endeca\apps\Discover\test_data\baseline. This version is configured to work with the test data provided with the Discover Electronics reference application.

To configure a hierarchical dimension suitable for use with your own product data, follow these steps:

The following table lists the parameters of a <RECORD> subelement in rs_baseline_dimvals.xml that configure a dimension value in a hierarchical dimension.

Parameter

Type

Description

dimval.dimension_spec

STRING

The name of the dimension to which this dimension value belongs.

dimval.spec

STRING

A value used to tag Endeca records to dimension values. It is also used internally to identify dimension values. The value of dimval.spec must be unique within the record store. For more information, see Introduction: Making Endeca records accessible to shoppers.

dimval.display_name

STRING

The name for this dimension value that appears in refinement lists.

dimval.parent_spec

STRING

The dimval.spec value of the dimension value that will be the parent of this dimension value. Use / to specify the root dimension value of the dimension. If not specified, the parent of this dimension value is assumed to be the root dimension value of the dimension.

In flat hierarchies, / is the only possible value because only the root dimension value can be a parent.

dimval.range.lower_bound

FLOAT

(for range dimension values only) The value of the lower bound of the range. The lower bound is exclusive by default.

dimval.range.lower_bound_inclusive

BOOLEAN

(for range dimension values only) Set to true to include the lower bound value in the range, or to false to exclude it.

dimval.range.upper_bound

FLOAT

(for range dimension values only) The numeric value of the upper bound of the range. The upper bound is exclusive by default.

If you omit the dimval.range.upper_bound parameter or do not specify a value for it, the upper boundary defaults to infinity.

dimval.range.upper_bound _ inclusive

BOOLEAN

(for range dimension values only) Set to true to include the upper bound value in the range, or to false to exclude it.

dimval.display_order

INTEGER

The position in refinement lists where this dimension value appears. Lower numbers specify earlier positions.

dimval.match.use_spec

BOOLEAN

Specifies whether property matching is based on the dimval.spec value. If set to false, matching can be on either the dimval.range.lower_bound parameter or the dimval.range.upper_bound parameter. The default is true.

dimval.search_synonym

STRING

A synonym for the dimension value's display name. A keyword search on the synonym will produce the same result as a keyword search on its display name. Synonyms can be applied only to leaf dimension values.

Note

A search synonym applies to search results on a particular product represented by a dimension value. Thesaurus entries, in contrast, are defined globally and are used for searches across all products. For information about thesaurus entries, refer to the Oracle Commerce Guided Search Workbench User's Guide.

For example, the following excerpt from rs_baseline_dimvals.xml defines a record that configures a range dimension value in a hierarchical dimension named camera.megapixel_range:

<RECORDS> 
  <RECORD> 
    <PROP NAME="Endeca.Id">
      <PVAL>camera.megapixel_range:Over 20</PVAL> 
    </PROP> 
    <PROP NAME="dimval.display_name"> 
      <PVAL>Over 20</PVAL> 
    </PROP>
    <PROP NAME="dimval.dimension_name">
      <PVAL>camera.megapixel_range</PVAL>
    </PROP> 
    <PROP NAME="dimval.parent_spec">
      <PVAL>/</PVAL> 
    </PROP> 
    <PROP NAME="dimval.range.upper_bound">
      <PVAL>250</PVAL>
    </PROP> 
    <PROP NAME="dimval.range.upper_bound_inclusive">
      <PVAL>true</PVAL>
    </PROP>
    <PROP NAME="dimval.range.lower_bound_inclusive">
      <PVAL>false</PVAL>
    </PROP>
    <PROP NAME="dimval.display_order">
      <PVAL>5</PVAL>
    </PROP>
    <PROP NAME="dimval.range.lower_bound">
      <PVAL>20</PVAL>
    </PROP>
    <PROP NAME="dimval.spec">
      <PVAL>Over 20</PVAL>
    </PROP>
  </RECORD>
  . . .

This record in rs_baseline_dimvals.xml file configures a range dimension value in the hierarchical dimension camera.megapixel_range as follows:


Copyright © Legal Notices