Summarize the Content of Hit Metas

A hit can contain a summary, which is a small number of selected sentences, centered around the query terms. You can typically configure its length and whether to highlight search terms in its content.

Note: You can apply a summary on any meta, but it is mostly applied on the text meta or on metas likely to contain rather long text.

This task shows you how to:

Tutorial: Configure a Summary for the Description Meta

In our tutorial, the description meta is the only one for which applying a summary is relevant. The descriptions are not very long but let us say that we want to apply a summary to this meta value, to reduce the number of characters displayed and the overall height of the hits.

  1. In the Administration Console, go to Search > Search Logics > sl0.
  2. On the Hit Content tab, click the sales_description meta.
  3. Select the Summary check box.
  4. Expand Operations, and expand Summary.
  5. For our example, reduce the Max. length value to 40.
  6. Click Apply.

Tutorial: Check the Summary Display

  1. Go to the Mashup UI search page: http://<HOSTNAME>:<BASEPORT>/mashup-ui /page/search?q=
  2. Refresh the screen.

In the search results, nylon is now highlighted in a summary of the description meta value.