API call: https://developer.shelf.io/api.html#operation/getAutosuggestions
POST: /search/v1/autosuggest
Body:
{
"text": "Mutual Funds",
"filters": {
"searchLanguage": "en",
"path": "libId1, libId2...",
"gemTypes": [
"Article",
"Note"
]
}
}
API call: https://developer.shelf.io/api.html#operation/searchGems
POST: /search/v1/gems
Body:
{
"query": "Mutual Funds",
"from": 10000,
"size": 100,
"sortBy": "RELEVANCE",
"sortOrder": "ASC",
"searchLanguage": "en",
"gemTypes": [
"Article",
"Note"
],
"libraryIds": "libId1, libId2..."
}
The same call can be utilized for predefined results e.g. direct navigation from dashboard:
{
"query": "",
"from": 0,
"size": 100,
"sortBy": "RELEVANCE",
"sortOrder": "ASC",
"parentId": "some-folder-id",
"searchLanguage": "en",
"gemTypes": [
"Article",
"Note"
],
"libraryIds": ""
}
In this case, we just keep libraryIds and query fields empty and use parentId instead.
Gem details: