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.

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"
    ]
}