About the Original Author

Recent articles by this author

This article shows two options to change the look of search results in WebSphere Portal Server 8 search center. The first one is the display of search results and the second one is the search term reloationship. Change the Search Result Display Table To display the search results in different ...

This article shows two options to change the look of search results in WebSphere Portal Server 8 search center. The first one is the display of search results and the second one is the search term reloationship.

Change the Search Result Display Table

To display the search results in different formats, the following files in the Search Center Portlet application need to be modified.

This result.xsl file is used to process the search result atom feed. The default results are displayed similar to the one below. The standard columns are Relevance, Icon, Title, Person, and Date.

The default result.xsl controls the display format. To customize the display to suit your organization needs, the display table section inside the result.xsl needs to be modified. Use the Extensible Stylesheet Language to modify the table section of the result.xsl, the search result display can be changed to the one shown below.

In this case, only two columns are used in the table. The first column displays the file type and the second column display the title. Attached is the snippet of the modified result.xsl. When the result document is coming from the WCM content, the default icon is shown in the first column. When the result is a file, the first column shows the file extension based on the mime type. The titles for those files are coming from the first part of the summary field and are shown in the second column of the result table.

In WebSphere Portal 8 search center, the default search logic for the entry is the “OR” logic. To change the search logic to the “AND” relationship, the properties in the search collection configuration have to the modified. After the crawler finish running for the first time, do the following steps.

1) Login to the Remote Search Server

2) Search for the search collection configuration file. There should be one configuration file for each collection. The name is in this format

collection_config_***.xml

where *** is some a sequence of generated alphanumeric numbers. The files could likely in the directory /apps/SCE/search/config/

3) Add the following property to the list of properties:
<property name="DEFAULT_SEARCH_OPERATOR" value="and"/>.
It should be in the collectionInfo tag.

Can you please provide more information about what property should be added to the collection_config file? When I view the article I'm only seeing a "." I would have expected to see a Name/Value pair to add to the list of properties in the collectionInfo tag section. Thanks!

Copy and paste this wiki markup to link to this
article from another article in this wiki.