+

Search Tips   |   Advanced Search

Search suggestions for tag names


To make search for tag names by users easier, search suggestions provide suggestions for tag names as they appear in the tag cloud and in the tag result portlet.

This is important with respect to normalization as we can configure the display mode of the tags in a tag cloud independently from the type-ahead suggestions. Compared to the query for the type-ahead feature, the search suggestions behave in terms of normalization like the display mechanism of the Tag Cloud.

To query for search suggestions, use the following query:

tos:searchsuggestions&term=term
where term represents the beginning of a term that a user is typing for which you want the portal to provide search suggestions. The returned feed is by default sorted by relevance. This means that tags that have been applied more often are displayed before tags that have been applied less often.

This query allows us to modify all of the following:

Configure how the tag names are displayed in terms of normalization. To do this, use the setting com.ibm.wps.cp.tagging.normalization.displayNormalizedName in the CP Configuration Service. The response of the suggestions is in the JSON (JavaScript Object Notation) format and consists of an array containing the searched partial term and suggestions.

Example: If the search term is web, then the response to tos:searchsuggestion&term=web contains the search suggestions WebSphere, Website, and WebBrowser. The notation in JSON is as follows in the mime type application/json: ["Web",["WebSphere", "Website", "WebBrowser"]] This is the format proposed by OpenSearch Suggestions extension Version 1.1 draft 1.

For more details about normalization and localization see the topic about How tagging and rating works in the portal under the section about the Normalization and localization.


Parent: Other queries
Related reference:
Add query parameters
How tagging and rating works in the portal
Related:

OpenSearch Suggestions extension Version 1.1 draft 1: http://www.opensearch.org/Specifications/OpenSearch/Extensions/Suggestions/1.1