Search query auto-completion

GET /search/questions-autocomplete
Parameter Type Default Required Description
query string - (An initial segment of) a search query for questions
limit int 4 The maximal number of suggestions to be returned.
language_ids string (comma-separated language ids) - An optional comma separated list of language ids. If empty it defaults to content languages of the caller.

This request will try to suggest useful queries for a question search that start with the given string. This can be used to implement an autocomplete feature for the search query input. All suggestions are guaranteed to start exactly with the given query, with the exception of differences in upper-/lowercase. Below is a possible response for the query "Sher".

{
    "total": 3,
    "items": [
        "sherlock",
        "sherlock holmes",
        "sherpa"
    ]
}