GET
/suggestions GetSuggestions Get Suggestions
Get search suggestions for `/work/search`. The `query` parameter should be the same as for `/work/search`. and the `filter` parameter should be the same as for `/work/search`, but some search filter may not be working in suggestions, see which ones by calling configuration. The response will be an array of suggestions of the type specified in the `types` parameter, and will be ordered by relevance. Filters: These only affects the suggestions of the type `work`: - plas.audience.literal - plas.audience.ageRange - plas.audience.ageGroup - plas.mediaTypes - plas.language - plas.subjects - plas.genres - plas.forms - plas.agent
Parametre
- query
- query · stringThe suggestion (search) query.
- size
- query · integerSuggestion size (default 10).
- types
- query · array of SuggestionParameterTypeEnumList of suggestion types allowed in result.
- filter
- query · objectThe suggestion (search) filter. The possible keys in this map are the filters defined in the `/configuration(/search)` endpoint (field: (search->)suggestions->>available) and are a list of strings of the `SearchFilterType` type.
Svar
- 200
GetSuggestionsResponseBodySuccess