You can modify the display of results on the search page in many ways. For example, you can filter the metas displayed in the result list, remove thumbnails, and link hits to a new Details page.
Filter metas in the result list
1. In Mashup Builder, go to the search page and select the Design view.
2. Click the header of the Result List widget.
3. On the widget properties panel (at the bottom of the screen), go to the Hit metas tab.
4. Set Meta filtering method to Exclude.
5. Click inside Meta list. A list of available metas displays in the Values contextual menu on the left. Select the metas to exclude, separating them with commas.
6. Select the Preview to check your configuration changes.
7. Click Apply.
Set the facet order
1. In Mashup Builder, go to the search page and select the Design view.
2. Click the header of the Standard Facets widget.
3. On the widget properties panel (at the bottom of the screen), set Facet root list mode to Include.
4. Click inside Facets list.
A list of available facets displays in the Values contextual menu on the left.
5. Select the facets to include, separating them with commas.
The facet order in this field corresponds to the facet order in the UI display.
6. Select the Preview to check your configuration changes.
7. Click Apply.
Modify how search results display
You can change how the search hits display in the Mashup Builder. By default, the title that displays for each result shows is based on the metas title and url, but other metas can be used instead.
For more information about this, see "Modify the display of hit titles" in the CloudView Getting Started Guide.
Display results in a new page
This example explains how to create a ‘details’ page providing more information for each hit. To save time, we will create it by copying another page.
1. Go to the /search page, and from the page editing tools, select Copy.
2. At the prompt, enter details as the new page name.
3. On the new details page, select the Feeds view.
4. Drag a CloudView Search feed on the page and call it cloudview.
5. For Query, enter rawurl:${page.params["q"]}
This is to make the query fetch the document that matches the returned URL, as we want to display the details of each hit in the new account page.
6. Select the Design view to customize the display of the details page. For example:
◦ You can choose to keep only the widgets Image, Spacer, and Result List on this page.
◦ You can select the metas to display, that is to say the information given by your details page, by going to the Hit metas tab and editing the list of metas to include.
7. Go back to the search page, and click the header of the Result List widget.
8. Configure the hit URL to open the /details page. For Hit URL, enter details?q=${entry.metas["url"]}
9. Select the Preview to check your configuration changes.
10. Click Apply.
Customize icons in the search results
Default icons used in the search result page are stored in <DATADIR>/webapps/360-edm-mashup-ui/resources/images/icons. You may need to change these icons.
1. Add your .GIF file to the icons folder in <DATADIR>/webapps/360-edm-mashup-ui/resources/images/icons.
2. Edit the mapping-entry-icon.properties file located in <DATADIR>/webapps/360-edm-mashup-ui/WEB-INF/config and specify the icon name.