{"action":"created","issue":{"url":"https://api.github.com/repos/neurosynth/neurosynth-web/issues/68","labels_url":"https://api.github.com/repos/neurosynth/neurosynth-web/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/neurosynth/neurosynth-web/issues/68/comments","events_url":"https://api.github.com/repos/neurosynth/neurosynth-web/issues/68/events","html_url":"https://github.com/neurosynth/neurosynth-web/issues/68","id":68973119,"number":68,"title":"Add expression-based study search","user":{"login":"tyarkoni","id":303932,"avatar_url":"https://avatars.githubusercontent.com/u/303932?v=3","gravatar_id":"","url":"https://api.github.com/users/tyarkoni","html_url":"https://github.com/tyarkoni","followers_url":"https://api.github.com/users/tyarkoni/followers","following_url":"https://api.github.com/users/tyarkoni/following{/other_user}","gists_url":"https://api.github.com/users/tyarkoni/gists{/gist_id}","starred_url":"https://api.github.com/users/tyarkoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyarkoni/subscriptions","organizations_url":"https://api.github.com/users/tyarkoni/orgs","repos_url":"https://api.github.com/users/tyarkoni/repos","events_url":"https://api.github.com/users/tyarkoni/events{/privacy}","received_events_url":"https://api.github.com/users/tyarkoni/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neurosynth/neurosynth-web/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/neurosynth/neurosynth-web/labels/priority:med","name":"priority:med","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"skept","id":2409217,"avatar_url":"https://avatars.githubusercontent.com/u/2409217?v=3","gravatar_id":"","url":"https://api.github.com/users/skept","html_url":"https://github.com/skept","followers_url":"https://api.github.com/users/skept/followers","following_url":"https://api.github.com/users/skept/following{/other_user}","gists_url":"https://api.github.com/users/skept/gists{/gist_id}","starred_url":"https://api.github.com/users/skept/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skept/subscriptions","organizations_url":"https://api.github.com/users/skept/orgs","repos_url":"https://api.github.com/users/skept/repos","events_url":"https://api.github.com/users/skept/events{/privacy}","received_events_url":"https://api.github.com/users/skept/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/neurosynth/neurosynth-web/milestones/2","html_url":"https://github.com/neurosynth/neurosynth-web/milestones/Custom%20analyses%20v2","labels_url":"https://api.github.com/repos/neurosynth/neurosynth-web/milestones/2/labels","id":1070720,"number":2,"title":"Custom analyses v2","description":"","creator":{"login":"skept","id":2409217,"avatar_url":"https://avatars.githubusercontent.com/u/2409217?v=3","gravatar_id":"","url":"https://api.github.com/users/skept","html_url":"https://github.com/skept","followers_url":"https://api.github.com/users/skept/followers","following_url":"https://api.github.com/users/skept/following{/other_user}","gists_url":"https://api.github.com/users/skept/gists{/gist_id}","starred_url":"https://api.github.com/users/skept/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skept/subscriptions","organizations_url":"https://api.github.com/users/skept/orgs","repos_url":"https://api.github.com/users/skept/repos","events_url":"https://api.github.com/users/skept/events{/privacy}","received_events_url":"https://api.github.com/users/skept/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":5,"state":"open","created_at":"2015-04-16T14:02:54Z","updated_at":"2015-05-08T03:51:20Z","due_on":"2015-06-19T05:00:00Z","closed_at":null},"comments":4,"created_at":"2015-04-16T17:37:48Z","updated_at":"2015-05-14T03:10:03Z","closed_at":null,"body":"The Neurosynth core tools currently implement a PEG that allow users to search for studies using arbitrarily complex logical queries (e.g., \"reward* &~ (emot* | negative)\" would search for all studies that are related to reward but not emotion or negative stuff). We should add a field to the study editing interface that interfaces with the back-end to retrieve studies.\r\n\r\nAt least initially, this will be very simple (i.e., we're not going to build a GUI that allows construction of queries via multiple boxes or buttons). We'll just have a single text field for \"expert search\" (probably above the existing selection interface) that allows users to type in queries. There will be some documentation of valid operators, but this is intended as a power user feature, and we're not going to build in a front-end validator any time soon (i.e., if the query breaks, the user will simply be notified by the server that they did something wrong).\r\n\r\nOn the back end, I'll add an API route (requiring users to be logged in) that takes a string as input and returns a jsonified list of PMIDs. Then the client app will just need to display the selected studies (culled from the set of all studies) to the user the normal way. It will also need to handle errors sensibly (probably  just by displaying a generic \"invalid query; please try again\" message."},"comment":{"url":"https://api.github.com/repos/neurosynth/neurosynth-web/issues/comments/101891375","html_url":"https://github.com/neurosynth/neurosynth-web/issues/68#issuecomment-101891375","issue_url":"https://api.github.com/repos/neurosynth/neurosynth-web/issues/68","id":101891375,"user":{"login":"skept","id":2409217,"avatar_url":"https://avatars.githubusercontent.com/u/2409217?v=3","gravatar_id":"","url":"https://api.github.com/users/skept","html_url":"https://github.com/skept","followers_url":"https://api.github.com/users/skept/followers","following_url":"https://api.github.com/users/skept/following{/other_user}","gists_url":"https://api.github.com/users/skept/gists{/gist_id}","starred_url":"https://api.github.com/users/skept/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skept/subscriptions","organizations_url":"https://api.github.com/users/skept/orgs","repos_url":"https://api.github.com/users/skept/repos","events_url":"https://api.github.com/users/skept/events{/privacy}","received_events_url":"https://api.github.com/users/skept/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T03:10:03Z","updated_at":"2015-05-14T03:10:03Z","body":"@tyarkoni An alpha version of this is working (see the expr-search branch). It looks like the queries are case-sensitive. Is that intended or do we want to make them case insensitive?"}}