{"action":"created","issue":{"url":"https://api.github.com/repos/monarch-initiative/monarch-app/issues/1008","repository_url":"https://api.github.com/repos/monarch-initiative/monarch-app","labels_url":"https://api.github.com/repos/monarch-initiative/monarch-app/issues/1008/labels{/name}","comments_url":"https://api.github.com/repos/monarch-initiative/monarch-app/issues/1008/comments","events_url":"https://api.github.com/repos/monarch-initiative/monarch-app/issues/1008/events","html_url":"https://github.com/monarch-initiative/monarch-app/issues/1008","id":111553882,"number":1008,"title":"Draft of possible enhancements to site autocomplete","user":{"login":"jmcmurry","id":3658863,"avatar_url":"https://avatars.githubusercontent.com/u/3658863?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcmurry","html_url":"https://github.com/jmcmurry","followers_url":"https://api.github.com/users/jmcmurry/followers","following_url":"https://api.github.com/users/jmcmurry/following{/other_user}","gists_url":"https://api.github.com/users/jmcmurry/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcmurry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcmurry/subscriptions","organizations_url":"https://api.github.com/users/jmcmurry/orgs","repos_url":"https://api.github.com/users/jmcmurry/repos","events_url":"https://api.github.com/users/jmcmurry/events{/privacy}","received_events_url":"https://api.github.com/users/jmcmurry/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/monarch-initiative/monarch-app/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/monarch-initiative/monarch-app/labels/search","name":"search","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-10-15T06:31:28Z","updated_at":"2016-03-23T00:28:00Z","closed_at":null,"body":"This is a high level ticket to capture the discussions we have been having on the site search strategy, autocomplete in particular. Below are some of the possible enhancements. Not all are feasible. Some may not be desirable. Not everyone will agree 100% and that is good.\r\n\r\n- [ ] Offer \"exploratory search\" options (\"in all results\") as well as \"known item\" search options\r\n- [ ] Collapse all text-matched genes, regardless of case / species, into a single item, leaving the finesse of ranking results (human first etc) to site search results page. I could provide a detailed rationale, but one big part of it is that we are up at over 15 species (yay!) and just listing them is crowding the space now (boo!).\r\n- [ ] In addition to specific genes, roll up related genes into families where possible (eg. \"pax gene family\", or \"blood coagulation factors\")\r\n- [ ] Add short descriptive text to genes where available / appropriate (eg. pax2 = paired box gene)\r\n- [ ] Maybe collapse text-equivalent phenotypes and diseases into a single result group called \"diseases and phenotypes\"? Not sure if there are enough use cases to warrant this, but it would be nice for things like cleft palate shown below.\r\n- [ ] Improve performance. If it takes several seconds and a spinny widget to populate autocomplete list, it is hard to gain user trust. \r\n- [ ] Make the results container appropriately wide or truncate results so that we don't get word wrap for a standard display (see below) (For mobile device this is unavoidable)\r\n- [ ] Make sure that the search results landing page obviously contains at least the results from autocomplete list. The current behavior is weird, perhaps to do with which synonyms are pulled? ````PAX interacting (with transcription-activation domain) protein 1```` is among autocomplete results for pax but not in search results page for pax.\r\n- [ ] Refine the algorithm so that we get matches on second words, words with apostrophes, identifiers, etc. Also allow narrative to be pasted in and handed over to the annotation widget. There are tickets open for this. I will link these later.\r\n- [ ] Show Search History when user clicks on entry box (before search term is entered)\r\n- [ ] Render 'previously visited' terms in purple\r\n\r\nOverall, here's my distilled version of an autocomplete proposal:\r\n\r\nConsider this | Rather than this\r\n------ | --------\r\n![image](https://cloud.githubusercontent.com/assets/3658863/10504722/a8fce922-72b8-11e5-86d5-16cc89f3ffc8.png)  | ![screen shot 2015-10-14 at 15 01 31](https://cloud.githubusercontent.com/assets/3658863/10499409/f8f631ba-7284-11e5-80ee-ae583fac0dc4.png)\r\n![image](https://cloud.githubusercontent.com/assets/3658863/10505393/da484f54-72c1-11e5-93c9-1e9e94cb60f4.png) | ![screen shot 2015-10-14 at 22 21 37](https://cloud.githubusercontent.com/assets/3658863/10505410/fe2c5ed8-72c1-11e5-9f17-7c7549470b74.png)"},"comment":{"url":"https://api.github.com/repos/monarch-initiative/monarch-app/issues/comments/200092759","html_url":"https://github.com/monarch-initiative/monarch-app/issues/1008#issuecomment-200092759","issue_url":"https://api.github.com/repos/monarch-initiative/monarch-app/issues/1008","id":200092759,"user":{"login":"jmcmurry","id":3658863,"avatar_url":"https://avatars.githubusercontent.com/u/3658863?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcmurry","html_url":"https://github.com/jmcmurry","followers_url":"https://api.github.com/users/jmcmurry/followers","following_url":"https://api.github.com/users/jmcmurry/following{/other_user}","gists_url":"https://api.github.com/users/jmcmurry/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcmurry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcmurry/subscriptions","organizations_url":"https://api.github.com/users/jmcmurry/orgs","repos_url":"https://api.github.com/users/jmcmurry/repos","events_url":"https://api.github.com/users/jmcmurry/events{/privacy}","received_events_url":"https://api.github.com/users/jmcmurry/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T00:28:00Z","updated_at":"2016-03-23T00:28:00Z","body":"In the absence of meaningful collapsing of species, if I had to distill autocomplete improvements into just two things, it would be (i) performance and (ii) \"in all results\"; are either of these tractable?"}}