Elastic Path Production Tools

Facets

Facets

Facets define how faceted search and navigation results are returned in Cortex when searching or browsing offers.

Facets: Sample XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<facets>
<facet>
    <facet_guid>d9a1d8bd-d00d-4d8c-a83a-c398bf542597</facet_guid>
    <business_object_id>A00001</business_object_id>
    <facet_name>Plot Keyword</facet_name>
    <field_key_type>0</field_key_type>
    <store_code>MOBEE</store_code>
    <display_values>
        <value language="fr_CA"></value>
        <value language="en">Plot Keyword</value>
        <value language="fr"></value>
    </display_values>
    <facet_type>2</facet_type>
    <searchable_option>true</searchable_option>
    <range_facet_values/>
    <facet_group>0</facet_group>
</facet>
<facet>
    <facet_guid>d5a370d2-e535-4229-bc13-784a5ec02245</facet_guid>
    <business_object_id>A00007</business_object_id>
    <facet_name>Runtime</facet_name>
    <field_key_type>1</field_key_type>
    <store_code>MOBEE</store_code>
    <display_values>
        <value language="en">Runtime</value>
        <value language="fr_CA"></value>
        <value language="fr">Runtime_fr</value>
    </display_values>
    <facet_type>1</facet_type>
    <searchable_option>true</searchable_option>
    <range_facet_values>
        <range_facet>
            <start>0</start>
            <end>100</end>
            <display_values>
                <value language="en">0 - 100</value>
                <value language="fr_CA">0 - 100</value>
                <value language="fr">0 to 100 fr</value>
            </display_values>
        </range_facet>
        <range_facet>
            <start>100</start>
            <end>200</end>
            <display_values>
                <value language="en">100 - 200</value>
                <value language="fr_CA">100 - 200</value>
                <value language="fr">100 to 200 fr</value>
            </display_values>
        </range_facet>
        <range_facet>
            <start>200</start>
            <end>300</end>
            <display_values>
                <value language="en">200 - 300</value>
                <value language="fr_CA">200 - 300</value>
                <value language="fr">200 to 300 fr</value>
            </display_values>
        </range_facet>
        <range_facet>
            <start>300</start>
            <display_values>
                <value language="en">300 +</value>
                <value language="fr_CA">300 +</value>
                <value language="fr">300 + fr</value>
            </display_values>
        </range_facet>
    </range_facet_values>
    <facet_group>0</facet_group>
</facet>
...
</facets>