The .csv file that defines classification synonyms contains the following kinds of entries, each of which must appear on a separate line:

The following table lists the operators that can be used in .csv files that define classification synonyms:

Operator

Description

#sourceProperty

(required) Specifies a property name defined under the /attributes folder.

For example:

#sourceProperty, sku-pants-Color.color

#sourceProperty, sku-blouse-Color.color

specifies that this .csv file can define synonyms for values of the properties sku-pants-Color.color and sku-blouse-Color.color.

If no #sourceProperty operators are specified, this .csv file does not define any classification synonyms.

There is no default.

# removeSourcePropertyValues

(optional) If TRUE, the original values of source properties are not included in the indexed data. If FALSE, the original values are included.

For example, suppose that the .csv specifies the following synonym:

Amethyst, purple

If #removeSourcePropertyValues is set to TRUE, then only "purple" is included in the indexed data; if it is set to FALSE, both "Amethyst" and "purple" are included.

The default is FALSE.

#allowUnknowns

(optional) If True, source property values for which no classification synonyms are defined in a .csv file are included in the indexed data.

If FALSE, original source property values with no classification synonyms are not included in the indexed data.

The default is FALSE.

#ignoreCase

(optional) If TRUE, values are not case-sensitive; for example, "blue" and "Blue" are treated as the same value.

If FALSE, values are case-sensitive; for example, "blue" and "Blue" are treated as different values.

The default value is FALSE.

#inverted

(optional) If FALSE, the first (leftmost) value on a line is a source property value and the others are classification synonyms. If TRUE, the last (rightmost) is value on a line is a source property value and the others are classification synonyms.

For example, suppose that a .csv file contains the following lines:

#inverted true
Amethyst, purple

"Amethyst" is now treated as a classification synonym, in spite of appearing at the leftmost end of the line. Thus, the following entry appears in the refinements:

Amethyst(n)

where n is the number of records tagged to "Amethyst".

However, if the .csv file contains #inverted false, the following entry will appear in the refinements:

purple(n)

The default is FALSE.

#valueIfMulti

(optional) Specifies an additional classification synonym for all source properties that have two or more classification synonyms. The additional classification synonym can be general in meaning, to supplement the more specific values of the other classification synonyms.

For example, suppose that the following classification synonyms are defined for the source properties "Black Watch Plaid" and "Tartan":

Black Watch Plaid, black, plaid
Tartan, red, green, white

The following operator defines "Multi-Colored" as an additional classification synonym for all source properties that have two or more classification synonyms:

#valueIfMulti,Multi-Colored

Thus, the classification synonyms of Black Watch Plaid appear as the following refinements (where n is the number of records matching the refinement):

black(n)
plaid(n)
Multi-Colored(n)		 

and the classification synonyms of Tartan appear as the following refinements:

red(n) 
green(n)
white(n)
Multi-Colored(n) 

If the #valueIfMulti operator is omitted, only the following refinements appear:

black(n)
plaid(n)		
red(n) 
green(n)
white(n)

There is no default value.


Copyright © Legal Notices