Show Menu
TOPICS×

About Dynamic Facets

Use Dynamic Facets to create new range selections automatically at the time of search. You can optionally associate each dynamic facet field with up to one table name in your Adobe Search&Promote account. You apply those table relationships at search-time for any dynamic facet fields involved in the search.

Using Dynamic Facets

This feature is not enabled in Adobe Search&Promote, by default. Contact Technical Support to activate the feature for your use.
Without the use of Dynamic Facets, you had to merge related attributes into "slots", and only display the slots that were homogeneous for a given search. That is, they could only contain one logical attribute's values, such as "shoe size" or "ring size". This method provided adequate search-time performance with a large set of unique attributes.
When Dynamic Faceting is used, however, it does not place a limit on the number of facets that core search can efficiently track. You can define hundreds of dynamic facets, from which core search can return the "top N dynamic facets" for a given search, where N is typically a more modest value of 10-20 or fewer. This method eliminates the need for slotting the attributes-you can now create a unique dynamic facet for attributes across your website.

What facets should you make dynamic?

Facets that are sparsely populated across your website and only appear for a subset of searches are good candidates to make dynamic. For example, a facet named "forefoot width" may only be populated when searching for shoes or boots. Whereas another facet named "Face Numeral Style", with possible values of "Roman" and "Arabic", may only appear when searching for watches or clocks.
If your account has a large number of such facets, it enhances search performance to use dynamic facets instead of always selecting the entire set of possible facets for every search. Generic facets such as "SKU" or "brand", which are normally appropriate to display with the results of every search, are typically not appropriate as dynamic facets.

Relationship of facets to meta tag fields

Facets are built on top of meta tag fields. A meta tag field is a low-level, core search layer feature of Adobe Search&Promote. Facets, on the other hand are part of GS (Guided Search)-the high-level, presentation layer of Adobe Search&Promote. Facets own meta tag fields, however, meta tag fields know nothing about facets. When you configure dynamic facets, you first add facets and then add meta tag fields with the Dynamic Facet option selected to set the identified facet to be dynamic.
There is no "Dynamic Facet" setting in Design > Navigation > Facets . What makes a facet "dynamic" is that its underlying "meta tag field" is dynamic as set in Settings > Metadata > Definitions .

Examples of dynamic facets in action

Example of dynamic facets that are displayed after a search for "boots":
Another example of dynamic facets that are displayed after a search for "watches":
See also

Configuring dynamic facets

Setting up Dynamic Facets in Search&Promotoe.
This feature is not enabled in Adobe Search&Promote, by default. Contact Technical Support to activate the feature for your use.
Before the effects of your dynamic facets are visible to customers, you must rebuild your site index.
See also
To configure dynamic facets
  1. Make sure you have already added facets.
  2. After your facets are added, make sure that you have added the facets to new user-defined meta tag fields.
  3. On the product menu, click Settings > Metadata > Definitions.
  4. On the Definitions page, in the User-defined fields table, in the Actions column, click the pencil icon (Edit) in the row of the meta tag field name associated with the facet that you want to make dynamic.
  5. On the Edit Field page, check Dynamic Facet .
    See the table of options in Adding a new meta tag field .
  6. Click Save Changes .
  7. Click regenerate your staged site index in the blue box to quickly rebuild your staged website index.
  8. Determine the number of dynamic facets to select for a given search. You accomplish this task by doing either one of the following:
    • Create a query cleaning rule with any desired conditions, that performs the action set , backend parameter , sp_sfvl_df_count to value X , where X is the desired number of dynamic facets to request at the time of search, and then click Add .
    See also Backend search CGI parameters , row 40 in the table for further explanation of sp_sfvl_df_count .
    • Add a search and set the "custom" sp_sfvl_df_count parameter to the desired value, and click Add .
    See also Backend search CGI parameters , row 40 in the table for further explanation of sp_sfvl_df_count .
  9. Edit the appropriate transport template to output the dynamic facets that the core search returns.
    For example, suppose that your transport template is named guided.tpl . In such case, on the product menu, click Design > Templates . On the Templates page, locate guided.tpl in the table. and then click Edit to the far right of the name. On the Editing page, add the following code block to the end of </facets> : JSON output:
    ... 
    }<search-dynamic-facet-fields>, 
            { 
                "name" : "<search-dynamic-facet-field-name>", 
                "dynamic-facet" : 1, 
                "values" : [<search-field-value-list quotes="yes" commas="yes" data="values" sortby="values" encoding="json" />], 
                "counts" : [<search-field-value-list quotes="yes" commas="yes" data="results" sortby="values" />] 
    
            }</search-dynamic-facet-fields> 
    ...
    
    
  10. Edit the appropriate presentation template or templates to output the dynamic facets.
    For example, suppose that you have a template named sim.tmpl that is used to output content in the Simulator. To edit that template, on the product menu, click Design > Templates . On the Templates page, locate sim.tmpl in the table. and then click Edit to the far right of the name. On the Editing page, add the following within the facet display area of the template:
    <h6>DF RAIL</h6> 
    <guided-facet-rail gsname="__dynamic_facets"> 
                <guided-facet ><!-- behavior=Normal --> 
                <div class="facet-block" id="facet"> 
                <p><b><guided-facet-display-name /></b></p> 
                <ul> 
                    <guided-facet-values> 
                        <guided-if-facet-value-equals-length-threshold> 
                </ul> 
                <ul id="brand" style="display:none"> 
                        </guided-if-facet-value-equals-length-threshold> 
                        <guided-if-facet-value-selected> 
                            <li><guided-facet-value> [<guided-lt>a href="<guided-facet-value-undo-path />"<guided-gt>X</a>]</li> 
                        <guided-else-facet-value-selected> 
                            <li><guided-facet-link><guided-facet-value></guided-facet-link> (<guided-facet-count>) </li> 
                        </guided-if-facet-value-selected> 
                    </guided-facet-values> 
                </ul> 
                <guided-if-facet-long> 
                  <br /><guided-lt />a href="#" onclick="moreless(this,'brand');return false;" <guided-gt /><button style="font-size:10px;">VIEW MORE</button></a> 
                </guided-if-facet-long> 
                </div> 
                </guided-facet> 
    </guided-facet-rail> 
    <h6>/DF RAIL</h6>
    
    
    You would also make a similar modification to other Presentation templates, as needed, such as json.tmpl .
    Be sure that you specify __dynamic_facets for the gsname in the guided-facet-rail tag. This tag is a pre-defined facet rail reserved for outputting any dynamic facets that are returned for a given search.
    You can also optionally edit this special facet rail by way of Rules > Business Rules, and using the Advanced Rule Builder as seen below.