Comment 13 for bug 1455207

Revision history for this message
Olivier Tilloy (osomon) wrote :

The expected JSON format is indeed an array with two entries: the first entry is the partial text entered by the user, the second entry is itself an array containing corresponding suggestions as simple strings, like the qwant example you provided.

See http://bazaar.launchpad.net/~phablet-team/webbrowser-app/trunk/view/head:/src/app/webbrowser/SearchSuggestions.qml#L55 for the code that parses the response.

I believe this was written based on empirical tests with various suggestion engines. Not sure whether there is a well-known standard format for this. If there is one, or if the lilo format is also well-accepted, we could surely add conditional code to ensure responses are correctly parsed.