{"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":"Search 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/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":1,"created_at":"2015-02-19T11:50:11Z","updated_at":"2015-02-19T11:57:22Z","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/75040501","html_url":"https://github.com/inveniosoftware/invenio/issues/2805#issuecomment-75040501","issue_url":"https://api.github.com/repos/inveniosoftware/invenio/issues/2805","id":75040501,"user":{"login":"kaplun","id":119349,"avatar_url":"https://avatars.githubusercontent.com/u/119349?v=3","gravatar_id":"","url":"https://api.github.com/users/kaplun","html_url":"https://github.com/kaplun","followers_url":"https://api.github.com/users/kaplun/followers","following_url":"https://api.github.com/users/kaplun/following{/other_user}","gists_url":"https://api.github.com/users/kaplun/gists{/gist_id}","starred_url":"https://api.github.com/users/kaplun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaplun/subscriptions","organizations_url":"https://api.github.com/users/kaplun/orgs","repos_url":"https://api.github.com/users/kaplun/repos","events_url":"https://api.github.com/users/kaplun/events{/privacy}","received_events_url":"https://api.github.com/users/kaplun/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T11:57:22Z","updated_at":"2015-02-19T11:57:22Z","body":"This bug should not exist on next as it is related to the native legacy search query parser."}}