# Suggestion

Provider API v0.6.5 · 1 operation
Source: https://plas.redia.dk/en/provider/v0.6.5/suggestion/

No description in the specification.

## Get Suggestions

`GET` `/suggestions` · `GetSuggestions`

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


### Parameters

- `query` (In `query`, `string`, optional) — The suggestion (search) query.
- `size` (In `query`, `integer`, optional) — Suggestion size (default 10).
- `types` (In `query`, [`array of SuggestionParameterTypeEnum`](https://plas.redia.dk/en/provider/v0.6.5/schemas/#SuggestionParameterTypeEnum), optional) — List of suggestion types allowed in result.
- `filter` (In `query`, `object`, optional) — The 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.


Shared across operations: `ui_language`, `version`. [See the shared contract on the version page.](https://plas.redia.dk/en/provider/v0.6.5/)

### Responses

- `200` [`GetSuggestionsResponseBody`](https://plas.redia.dk/en/provider/v0.6.5/schemas/#GetSuggestionsResponseBody) — Success

Error responses: 400 · 401 · 404 — [See the shared contract on the version page.](https://plas.redia.dk/en/provider/v0.6.5/)
