{"action":"created","issue":{"url":"https://api.github.com/repos/inspirehep/inspire-next/issues/276","labels_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/276/comments","events_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/276/events","html_url":"https://github.com/inspirehep/inspire-next/issues/276","id":95623483,"number":276,"title":"Elasticsearch mapping for HEP records","user":{"login":"jacquerie","id":381280,"avatar_url":"https://avatars.githubusercontent.com/u/381280?v=3","gravatar_id":"","url":"https://api.github.com/users/jacquerie","html_url":"https://github.com/jacquerie","followers_url":"https://api.github.com/users/jacquerie/followers","following_url":"https://api.github.com/users/jacquerie/following{/other_user}","gists_url":"https://api.github.com/users/jacquerie/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquerie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquerie/subscriptions","organizations_url":"https://api.github.com/users/jacquerie/orgs","repos_url":"https://api.github.com/users/jacquerie/repos","events_url":"https://api.github.com/users/jacquerie/events{/privacy}","received_events_url":"https://api.github.com/users/jacquerie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/inspirehep/inspire-next/labels/roadmap","name":"roadmap","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/inspirehep/inspire-next/milestones/3","html_url":"https://github.com/inspirehep/inspire-next/milestones/Enabling%20search","labels_url":"https://api.github.com/repos/inspirehep/inspire-next/milestones/3/labels","id":1202933,"number":3,"title":"Enabling search","description":"We enable searching on labs. For this:\r\n* all marcxml records in prod should be continuously pushed to labs. \r\n* data model for all collections is complete and dojson complies with data model.\r\n* all collections have dedicated brief and detailed format\r\n* SPIRES syntax must work in all its intricacies \r\n* citations/references must work\r\n  * in detailed record panels\r\n  * in numbers presented around\r\n  * in refersto: citedby: syntaxes\r\n\r\nFor the time being prod is still the master of every record related modification\r\n","creator":{"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},"open_issues":13,"closed_issues":46,"state":"open","created_at":"2015-07-10T19:10:31Z","updated_at":"2015-12-10T16:06:17Z","due_on":"2015-11-29T23:00:00Z","closed_at":null},"comments":7,"created_at":"2015-07-17T09:41:18Z","updated_at":"2015-12-10T16:07:40Z","closed_at":"2015-12-10T16:06:17Z","body":"Currently the [Elasticsearch mapping](https://github.com/inveniosoftware/invenio/blob/002a46d048c0faeac32383b2a94658a9226ac297/invenio/ext/es.py) is taken from Invenio; we are still missing a mechanism to allow for its override at the overlay level, but (I think) this will eventually be solved upstream. \r\n\r\nIn any case, here I'll note a few modifications that we are going to need:\r\n\r\n- [x] DOIs should not be analyzed:\r\n```JSON\r\n\"doi\": {\r\n    \"type\": \"object\",\r\n        \"properties\": {\r\n            \"doi\": {\r\n                \"type\": \"string\",\r\n                \"index\": \"not_analyzed\"\r\n            }\r\n    }\r\n}\r\n```\r\n\r\n(This of course is strongly tied to the data models developed in #265)"},"comment":{"url":"https://api.github.com/repos/inspirehep/inspire-next/issues/comments/163671884","html_url":"https://github.com/inspirehep/inspire-next/issues/276#issuecomment-163671884","issue_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/276","id":163671884,"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-12-10T16:07:39Z","updated_at":"2015-12-10T16:07:39Z","body":"You could have just said yes."}}