How to Generate SmartHub Best Bets at Crawl Time

About the SmartHub Best Bets Feeder Component

The information below describes how to automatically generate SmartHub Best Bets at crawl time using the SmartHub Best Bets Feeder component. Use this component to leverage extracted metadata at crawl time for generating Best Bets results and saving them into SmartHub. When a user searches for one of the Best Bets concepts pushed by this stage, the associated best bet result appears in the SmartHub search results page (shown below).

Example

Prerequisites

Be sure to satisfy the following list of prerequisites before you continue:

  • Record the following data:
    • Elastic address
    • Index name and credentials used in the SmartHub NLQ Configuration page.

How to Add the SmartHub Best Bets Feeder component to AutoClassifier

  1. Navigate to the AutoClassifier Pipelines component page.
  1. Click New Component and select SmartHub Best Bets Feeder from the component list.

  1. Name your new SmartHub Best Bets Feeder component and click Add.

  1. Click Apply to save your changes.

  2. Ensure your new SmartHub Best Bets Feeder component is placed in the list of existing pipeline stages.

How to Configure the SmartHub Best Bets Feeder Component

To configure your SmartHub Best Bets Feeder component, select it from the components list and complete the following fields in the Configuration section:

  1. Elastic endpoint URL: Enter the URL of the Elastic instance that SmartHub is configured to use for NLQ. The default value for this field is http://localhost:9200.
  2. Elastic username/password: Enter the credentials used to authenticate against the Elastic instance.
  3. Elastic timeout: Specify the maximum time to wait, in seconds, for the Elastic request to execute. The default value for this field is 30 seconds.
  4. Bot index name: Enter the name of the bot index that is configured in SmartHub on the NLQ Configuration page. The default value for this field is "bot-index"
  5. Input property name: Enter the name of the property containing the information to extract the Best Bets from. The property must be an array of values and the values must be in the format BestBetTitle: BestBetDescription. For example, "Infant: A child between 1 and 23 months of age".
  6. Dynamic template: Enter an HTML template is used for the BestBet HTML response in SmartHub. The template must contain the {BestBetName} and {BestBetDescription} tags. These are later replaced with their actual values. 
  7. Click Save.