Select the Hit Metas and Hit Facets to Display

When you go to the Administration Console > Search > Search Logics > Hit content and Facets tabs, the data model expansion has created the content to display in the search results automatically.

The hit metas and hit facets listed here correspond to all the properties that were set as retrievable. They are all prefixed by sales_ as they belong to the sales class.

Note: The use of navigation facets is described separately, in Defining the Refinement Facets. This tutorial explains how to enhance the display of hit facets.

Context:

As we only have one language in our corpus, we are going to remove the Language facet from both the hit content and the navigation facets (Refinements). We also want to hide from the hit content the facets:

  • sales_category
  • sales_color
  • and sales_store_country
… as they are already displayed as hit metas (they were set as retrievable in the data model configuration) and we can refine on them using the Refinements panel.

  1. In the Administration Console, go to Search > Search Logics > sl0 > Facets.

    The Facets tab shows the category facets that will be displayed as hit facets and navigation facets in the search results

  2. Delete the Language facet.
  3. To hide the sales_category, sales_color, sales_store_city and sales_store_coun­try facets:
    1. Expand the category facet.
    2. Click Customize.
    3. Clear Use for hit content.
    4. Repeat the previous steps for the other facets.
  4. Click Apply.
  5. Go to the Mashup UI search page: http://<HOSTNAME>:<BASEPORT>/mashup-ui /page/search?q=
  6. Refresh the view.

    The Language facet has been removed from the hit content and the Refinements panel. The sales_category, sales_color, sales_store_city and sales_store_country facets have also been removed from the hit content.