← Back to team overview

touch-packages team mailing list archive

[Bug 1482313] Re: Search suggestions parser cannot handle suggestions from baidu

 

Thanks Riccardo, that’s a very good find!
I’m closing this bug as invalid, now that we have a suitable URL that returns opensearch results.

** Changed in: webbrowser-app (Ubuntu)
       Status: Triaged => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to webbrowser-app in Ubuntu.
https://bugs.launchpad.net/bugs/1482313

Title:
  Search suggestions parser cannot handle suggestions from baidu

Status in webbrowser-app package in Ubuntu:
  Invalid

Bug description:
  The code that parses search suggestions (http://bazaar.launchpad.net
  /~phablet-team/webbrowser-
  app/trunk/view/head:/src/app/webbrowser/SearchSuggestions.qml#L55)
  assumes a given format for the data returned by the search engine,
  similar to this:

      ["ubuntu",["ubuntu","ubuntu download","ubuntu 15.04","ubuntu
  14.04","ubuntu linux","ubuntu server","ubuntu live cd","ubuntu linux
  download","ubuntu studio","ubuntu phone"],[],[]]

  (this is the format for the data we get from all major search engines
  such as google, yahoo, bing, qwant, wikipedia, …)

  However it appears that other search engines return their suggestions
  in a different format. Baidu is one of them. A query to
  http://suggestion.baidu.com/su?wd=ubuntu returns:

      window.baidu.sug({q:"ubuntu",p:false,s:["ubuntu
  14.04","ubuntu中文输入法","ubuntu 搜狗输入法","ubuntu qq","ubuntu
  安装","ubuntu15.04","ubuntu kylin","ubuntu root 默认密码","ubuntu
  ssh","ubuntu源"]});

  The parser needs to be made more flexible to handle both syntaxes (and
  maybe other syntaxes in the future).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/webbrowser-app/+bug/1482313/+subscriptions


References