GET /glossary/api/v4/suggest

GET /glossary/api/v4/suggest

Use this URI to suggest several possible search queries based on the user's query. Requires a valid JSESSIONID cookie as part of this request. Results are filtered based on the user's permissions.

Parameters

The following table describes the query parameters for the GET /glossary/api/v4/suggest URI request:
Parameter
Description
query
Required. Search query string.

Returns

The number of search results and an ordered list of matched business terms. Results are limited to published terms that the user has the permission to access.

Return Values

The following table describes the return value for the GET /glossary/api/v4/suggest URI request:
Return Value
Description
suggestion
Lists possible search queries based on the search string that the user enters.

Responses

The following responses can occur for the GET /glossary/api/v4/suggest URI request:
HTTP Return Code: 200
Suggestion for a search string. For example:
{ "processingTime": "10", "suggestion": [ "Customer Name", "Custom Cars" ] }
HTTP Return Code: 400
Response to a missing request parameter. For example:
{ "errorCode": "BG1003", "message": "Invalid request, missing either parameter {0} or its value." }
HTTP Return Code: 401
Session expired.
HTTP Return Code: 403
Response to a search query that is not valid. For example:
{ "errorCode": "BGREST_1211", "message": "[SearchServiceClient_00013] The search string is not valid. You cannot start a search string with wildcard characters * or ?." }
HTTP Return Code: 404
This API method will never return an error.
HTTP Return Code: 500
Response to an internal search error. For example:
{ "errorCode": "BGREST_1211", "message": "No Search Service is associated with Model Repository Service ['MRS_BG']. To perform a search, create a Search Service, associate it with the Model Repository Service, and ensure that it is enabled." }

0 COMMENTS

We’d like to hear from you!