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.
In the Administration Console, go to
Search > Search Logics > sl0 > Facets.
Delete the Language facet.
To hide the sales_category, sales_color,
sales_store_city and sales_store_country
facets:
Expand the category facet.
Click Customize.
Clear Use for hit content.
Repeat the previous steps for the other facets.
Click Apply.
Go to the Mashup UI search
page: http://<HOSTNAME>:<BASEPORT>/mashup-ui/page/search?q=
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.