diff --git a/searx/webapp.py b/searx/webapp.py index 85f57266a..18df14f58 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -845,7 +845,10 @@ def autocompleter(): mimetype = 'application/json' else: # the suggestion request comes from browser's URL bar - suggestions = json.dumps([sug_prefix, results]) + relevances = { + 'google:suggestrelevance': [600 - i for i in range(len(results))] + } # chromium only shows 3 suggestions unless we attach relevances + suggestions = json.dumps([sug_prefix, results, [], [], relevances]) mimetype = 'application/x-suggestions+json' suggestions = escape(suggestions, False)