Type ahead
Portal tagging and rating provides a query for the type-ahead feature. This feature allows users to get suggestions for tags that other users have applied already before. This feature can help reduce the number of variants of tags.
To query for the type ahead feature, use the following query:
tos:typeahead&term=termwhere term represents the beginning of a term that a user is typing for which you want the portal to provide typeahead 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 you to modify all of the following:
You can configure how the tag names are displayed in terms of normalization. To do this, use the setting com.ibm.wps.cp.tagging.normalization.typeAhead in the CP Configuration Service. The response of the suggestions is in the JSON (JavaScript Object Notation) format and consists of an array that contains the searched partial term and suggestions.
- The parameters order, orderMetric, locales . The parameters control how the type-ahead result looks. For more details see the topic about Add query parameters under the sections about Sorting the results and Locale sensitive queries.
- The pagination of the type-ahead results, that is with which item the result list starts and how many results are displayed. For more details see the topic about Add query parameters under the section about Limiting the results.
Example: If the search term is web, then the response to tos:typeahead&term=web contains the 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 the type-ahead feature for tagging see the topic about How tagging and rating works in the portal under the section about the Type-ahead feature for tagging.
Parent
Other queries
Search for tagged content
Add query parameters
How tagging and rating works in the portal
Open Search - www.opensearch.org/Home