Templates
The Templates screen in the Rules Editor allows you to design, test, and implement a wide variety of search experiences. Results are conditionally delivered from multiple different query pipelines, enabling you to use Fusion’s search, browse, and AI-driven functionality throughout your site.
Access Templates from the Rules Editor by navigating to Relevance > Rules > Templates. See Use Predictive Merchandiser Templates for instructions on using Templates.
Templates are only available with a valid license for Predictive Merchandiser. If available, you will see the templates icon in the left navigation panel:
For configuration information, see Templates UI Configurations Reference and the Templating API Configuration Reference.
Lucidworks offers free training to help you get started with Fusion. Check out the Predictive Merchandiser: Template Manager course, which focuses on how to use the templates included in Predictive Merchandiser and create your own custom templates: Visit the LucidAcademy to see the full training catalog. |
Templates
Templates are comprised of two primary elements, the template itself and its associated zones. A variety of conditions, or triggers, determine which template is shown to the customer. These triggers can include whether the template is active, the template’s precedence over other templates, the customer’s query, and whether the template is triggered within a specific date range (if set).
Default templates
A new app starts with built-in templates: Detail Page, Search Results, and Typeahead. The Detail Page and Search Results Page templates are immediately available in the Templates screen.
- Detail Page
-
The Detail Page defines what a customer sees when they view the details of a product. It can be configured in the Templates screen or by hovering over a product in the Predictive Merchandiser screen and clicking the Detail Page button that appears.
- Search Results page
-
The Search Results Page defines what a customer sees when they reach a search results page. This template can also be configured in the Template screen. Alternatively, you can click Merchandiser > Start Task > Edit Template.
- Typeahead Template
-
The Typeahead Template allows you to configure what is displayed when query terms are typed into the search bar. To add this template, click Merchandiser > Start Task > enter a search query term. When the system displays "Typeahead not created. Do you want to create a new typeahead template?", click New to create the typeahead template.
Custom templates
In some cases, you may want to create custom template types to add more options for curating pages in your search application. You can create a custom template type in the Template screen by following the steps in Create a Custom Predictive Merchandiser Template Type.
Zones
Zones enable Fusion users to create rules designed for specific query profiles. Combined with templates, this allows a search application to display results from multiple query profiles in the same view.
For example, if a customer searches for climbing
, one zone can fetch results for climbing apparel, and another zone can fetch blog posts about climbing. The same zone can be used in multiple templates, and changes to a zone will be made on all templates that zone is used in.
In the example above, a unique template is fired for the query cyber monday
. This template has two zones:
-
Promoted - Display advertised products.
-
Main Results List - Display general search results.