'.. http:get:: /search/completions?q=(string:query)
A GET request to this endpoint will return autocompletion suggestions for the given query. For instance,
when searching for "pioneer", this endpoint might return "pioneer one" if that torrent is present in the
local database. This endpoint can be used to suggest terms to users while they type their search query.
**Example request**:
.. sourcecode:: none
curl -X GET http://localhost:8085/search/completions?q=pioneer
**Example response**:
.. sourcecode:: javascript
"completions": ["pioneer one", "pioneer movie"]'

def render_GET(self, request):

    if ('q' not in request.args):
        request.setResponseCode(http.BAD_REQUEST)
        return json.dumps({'error': 'query    parameter    missing'})
    keywords = unicode(request.args['q'][0], 'utf-8').lower()
    results = self.torrent_db_handler.getAutoCompleteTerms(keywords, max_terms=5)
    return json.dumps({'completions': results})
