{"action":"created","issue":{"url":"https://api.github.com/repos/fergiemcdowall/norch/issues/89","labels_url":"https://api.github.com/repos/fergiemcdowall/norch/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/fergiemcdowall/norch/issues/89/comments","events_url":"https://api.github.com/repos/fergiemcdowall/norch/issues/89/events","html_url":"https://github.com/fergiemcdowall/norch/issues/89","id":79942192,"number":89,"title":"Autocomplete / matcher from the browser with Opensearch","user":{"login":"eklem","id":236656,"avatar_url":"https://avatars.githubusercontent.com/u/236656?v=3","gravatar_id":"","url":"https://api.github.com/users/eklem","html_url":"https://github.com/eklem","followers_url":"https://api.github.com/users/eklem/followers","following_url":"https://api.github.com/users/eklem/following{/other_user}","gists_url":"https://api.github.com/users/eklem/gists{/gist_id}","starred_url":"https://api.github.com/users/eklem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eklem/subscriptions","organizations_url":"https://api.github.com/users/eklem/orgs","repos_url":"https://api.github.com/users/eklem/repos","events_url":"https://api.github.com/users/eklem/events{/privacy}","received_events_url":"https://api.github.com/users/eklem/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fergiemcdowall/norch/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/fergiemcdowall/norch/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-23T20:16:34Z","updated_at":"2015-08-30T06:05:29Z","closed_at":null,"body":"So, gotten Opensearch.xml to work with the browser search box over at [life-index](https://github.com/eklem/life-index/commit/18aad6ba776a7a9dec234c6e936a221b3d42eb24), but need a little more to get the autocomplete to work fully.\r\n\r\nToday the respons JSON is an array of suggested search words.\r\n![skjermbilde 2015-05-23 kl 21 52 30](https://cloud.githubusercontent.com/assets/236656/7785613/026630aa-0198-11e5-9656-8dcef2d852fd.png)\r\n\r\nFrom the [Opensearch XML documentation](http://www.opensearch.org/Specifications/OpenSearch/Extensions/Suggestions/1.1#Response_content) for suggestions it seems I need to alter the JSON a bit. I need the existing list\r\n```json\r\n[  \r\n   \"test\",\r\n   \"testing\",\r\n   \"tests\",\r\n   \"tested\",\r\n   \"test2&quot;\",\r\n   \"test2\",\r\n   \"test\\\\tools\\\\bench\",\r\n   \"testcase\",\r\n   \"test1&quot;\",\r\n   \"testdata\"\r\n]\r\n```\r\nto look like\r\n```json\r\n[  \r\n   \"test\",\r\n   [  \r\n      \"test\",\r\n      \"testing\",\r\n      \"tests\",\r\n      \"tested\",\r\n      \"test2&quot;\",\r\n      \"test2\",\r\n      \"test\\\\tools\\\\bench\",\r\n      \"testcase\",\r\n      \"test1&quot;\",\r\n      \"testdata\"\r\n   ]\r\n]\r\n```\r\nWhere the first array consists of the query or beginsWith and then the array of suggestions. My question is if you have an idea on how easy it would be to make this a part of the existing Norch without breaking anything?\r\n\r\nBefore you do anything, I can test with some dummy-JSON to be sure this is actually working for the browser."},"comment":{"url":"https://api.github.com/repos/fergiemcdowall/norch/issues/comments/136091363","html_url":"https://github.com/fergiemcdowall/norch/issues/89#issuecomment-136091363","issue_url":"https://api.github.com/repos/fergiemcdowall/norch/issues/89","id":136091363,"user":{"login":"eklem","id":236656,"avatar_url":"https://avatars.githubusercontent.com/u/236656?v=3","gravatar_id":"","url":"https://api.github.com/users/eklem","html_url":"https://github.com/eklem","followers_url":"https://api.github.com/users/eklem/followers","following_url":"https://api.github.com/users/eklem/following{/other_user}","gists_url":"https://api.github.com/users/eklem/gists{/gist_id}","starred_url":"https://api.github.com/users/eklem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eklem/subscriptions","organizations_url":"https://api.github.com/users/eklem/orgs","repos_url":"https://api.github.com/users/eklem/repos","events_url":"https://api.github.com/users/eklem/events{/privacy}","received_events_url":"https://api.github.com/users/eklem/received_events","type":"User","site_admin":false},"created_at":"2015-08-30T06:05:29Z","updated_at":"2015-08-30T06:05:29Z","body":"I'm still on an old version, so that shouldn't matter. It stopped working on Mozilla for Android, but desktop is fine."}}