{"action":"created","issue":{"url":"https://api.github.com/repos/inveniosoftware/invenio/issues/2805","labels_url":"https://api.github.com/repos/inveniosoftware/invenio/issues/2805/labels{/name}","comments_url":"https://api.github.com/repos/inveniosoftware/invenio/issues/2805/comments","events_url":"https://api.github.com/repos/inveniosoftware/invenio/issues/2805/events","html_url":"https://github.com/inveniosoftware/invenio/issues/2805","id":58198479,"number":2805,"title":"WebSearch: parser missinterprets / in search terms","user":{"login":"aw-bib","id":7702850,"avatar_url":"https://avatars.githubusercontent.com/u/7702850?v=3","gravatar_id":"","url":"https://api.github.com/users/aw-bib","html_url":"https://github.com/aw-bib","followers_url":"https://api.github.com/users/aw-bib/followers","following_url":"https://api.github.com/users/aw-bib/following{/other_user}","gists_url":"https://api.github.com/users/aw-bib/gists{/gist_id}","starred_url":"https://api.github.com/users/aw-bib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aw-bib/subscriptions","organizations_url":"https://api.github.com/users/aw-bib/orgs","repos_url":"https://api.github.com/users/aw-bib/repos","events_url":"https://api.github.com/users/aw-bib/events{/privacy}","received_events_url":"https://api.github.com/users/aw-bib/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/inveniosoftware/invenio/labels/c_WebSearch","name":"c_WebSearch","color":"ededed"},{"url":"https://api.github.com/repos/inveniosoftware/invenio/labels/in_triage","name":"in_triage","color":"fef2c0"},{"url":"https://api.github.com/repos/inveniosoftware/invenio/labels/maint-1.1","name":"maint-1.1","color":"d4c5f9"},{"url":"https://api.github.com/repos/inveniosoftware/invenio/labels/master","name":"master","color":"d4c5f9"},{"url":"https://api.github.com/repos/inveniosoftware/invenio/labels/p_minor","name":"p_minor","color":"f7c6c7"},{"url":"https://api.github.com/repos/inveniosoftware/invenio/labels/t_bug","name":"t_bug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/inveniosoftware/invenio/milestones/1","labels_url":"https://api.github.com/repos/inveniosoftware/invenio/milestones/1/labels","id":644879,"number":1,"title":"v1.3","description":"","creator":{"login":"invenio-developers","id":7439566,"avatar_url":"https://avatars.githubusercontent.com/u/7439566?v=3","gravatar_id":"","url":"https://api.github.com/users/invenio-developers","html_url":"https://github.com/invenio-developers","followers_url":"https://api.github.com/users/invenio-developers/followers","following_url":"https://api.github.com/users/invenio-developers/following{/other_user}","gists_url":"https://api.github.com/users/invenio-developers/gists{/gist_id}","starred_url":"https://api.github.com/users/invenio-developers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/invenio-developers/subscriptions","organizations_url":"https://api.github.com/users/invenio-developers/orgs","repos_url":"https://api.github.com/users/invenio-developers/repos","events_url":"https://api.github.com/users/invenio-developers/events{/privacy}","received_events_url":"https://api.github.com/users/invenio-developers/received_events","type":"User","site_admin":false},"open_issues":77,"closed_issues":211,"state":"open","created_at":"2014-04-30T12:37:17Z","updated_at":"2015-02-19T11:56:52Z","due_on":"2014-12-17T08:00:00Z","closed_at":null},"comments":5,"created_at":"2015-02-19T11:50:11Z","updated_at":"2015-02-19T13:50:37Z","closed_at":null,"body":"Given a query with an even amount of / in the search terms, like\r\n\r\n    \"10.1016/j.ijms.2014.02.006\" or \"10.1016/j.ijms.2014.02.006\"\r\n\r\nIn this case, even if the term as such matches, invenio returns no results. If the number of / is odd, however, the it returns results, e.g.\r\n\r\n    \"10.1016/j.ijms.2014.02.006\" or \"10.1016/j.ijms.2014.02.006\"  \"10.1016/j.ijms.2014.02.006\"\r\n\r\nor\r\n\r\n    \"10.1016/j.ijms.2014.02.006\"\r\n\r\nIt looks like invenio's query parser is treating even numbers of / as regexp pattern search even though they are enclosed in quotes like above.\r\n\r\nBreaks on invenio up to at least 1.1.4. The above example is for cds.cern.ch (ie. the record with this id exists there). This behaviour was first observed at JuSER (http://juser.fz-juelich.de) with the query\r\n\r\n    id:\"10.7566/JPSJS.82SA.SA016\" or id:\"10.1017/S1461145712000697\"\r\n\r\nrunning invenio 1.1.4 (tag release 1.1.4)\r\n\r\n*Note*: it seems that so called _advanced search_ is not affected."},"comment":{"url":"https://api.github.com/repos/inveniosoftware/invenio/issues/comments/75054420","html_url":"https://github.com/inveniosoftware/invenio/issues/2805#issuecomment-75054420","issue_url":"https://api.github.com/repos/inveniosoftware/invenio/issues/2805","id":75054420,"user":{"login":"aw-bib","id":7702850,"avatar_url":"https://avatars.githubusercontent.com/u/7702850?v=3","gravatar_id":"","url":"https://api.github.com/users/aw-bib","html_url":"https://github.com/aw-bib","followers_url":"https://api.github.com/users/aw-bib/followers","following_url":"https://api.github.com/users/aw-bib/following{/other_user}","gists_url":"https://api.github.com/users/aw-bib/gists{/gist_id}","starred_url":"https://api.github.com/users/aw-bib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aw-bib/subscriptions","organizations_url":"https://api.github.com/users/aw-bib/orgs","repos_url":"https://api.github.com/users/aw-bib/repos","events_url":"https://api.github.com/users/aw-bib/events{/privacy}","received_events_url":"https://api.github.com/users/aw-bib/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T13:50:37Z","updated_at":"2015-02-19T13:50:37Z","body":"@kaplung understood. I admit to fix it myself I'd need a bit of a pointer where to look. The search engine internals are complex."}}