{"action":"created","issue":{"url":"https://api.github.com/repos/dpla/automation/issues/88","labels_url":"https://api.github.com/repos/dpla/automation/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/dpla/automation/issues/88/comments","events_url":"https://api.github.com/repos/dpla/automation/issues/88/events","html_url":"https://github.com/dpla/automation/pull/88","id":86632520,"number":88,"title":"Improve Solr index and configuration operations","user":{"login":"markbreedlove","id":5550828,"avatar_url":"https://avatars.githubusercontent.com/u/5550828?v=3","gravatar_id":"","url":"https://api.github.com/users/markbreedlove","html_url":"https://github.com/markbreedlove","followers_url":"https://api.github.com/users/markbreedlove/followers","following_url":"https://api.github.com/users/markbreedlove/following{/other_user}","gists_url":"https://api.github.com/users/markbreedlove/gists{/gist_id}","starred_url":"https://api.github.com/users/markbreedlove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markbreedlove/subscriptions","organizations_url":"https://api.github.com/users/markbreedlove/orgs","repos_url":"https://api.github.com/users/markbreedlove/repos","events_url":"https://api.github.com/users/markbreedlove/events{/privacy}","received_events_url":"https://api.github.com/users/markbreedlove/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-09T15:12:25Z","updated_at":"2015-06-09T21:04:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dpla/automation/pulls/88","html_url":"https://github.com/dpla/automation/pull/88","diff_url":"https://github.com/dpla/automation/pull/88.diff","patch_url":"https://github.com/dpla/automation/pull/88.patch"},"body":"- Delete Solr index when there is a schema change.\r\n- Reload the Solr core instead of restarting Tomcat.\r\n\r\nThere is no standalone playbook for clearing the Solr index, which would\r\nbe nice, but which would take longer to put together than I can afford\r\nright now, because I'd have to spend more effort to avoid duplicating\r\ncode in that case.\r\n\r\nAfter clearing the index, you have to run a new indexing operation,\r\nwhich is out of the scope of the `automation` project.  Just note that\r\nthat has to happen.  It seems that a first-time indexing run after the\r\nschema is changed, the index is deleted, and the Solr core is restarted\r\nrequires a reload of the core again for the added documents to show up.\r\nI don't have an explanation for that, and I'm not sure whether it has to\r\ndo with deleting the index, or something that should be done when the\r\nrecords are re-indexed."},"comment":{"url":"https://api.github.com/repos/dpla/automation/issues/comments/110503788","html_url":"https://github.com/dpla/automation/pull/88#issuecomment-110503788","issue_url":"https://api.github.com/repos/dpla/automation/issues/88","id":110503788,"user":{"login":"markbreedlove","id":5550828,"avatar_url":"https://avatars.githubusercontent.com/u/5550828?v=3","gravatar_id":"","url":"https://api.github.com/users/markbreedlove","html_url":"https://github.com/markbreedlove","followers_url":"https://api.github.com/users/markbreedlove/followers","following_url":"https://api.github.com/users/markbreedlove/following{/other_user}","gists_url":"https://api.github.com/users/markbreedlove/gists{/gist_id}","starred_url":"https://api.github.com/users/markbreedlove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markbreedlove/subscriptions","organizations_url":"https://api.github.com/users/markbreedlove/orgs","repos_url":"https://api.github.com/users/markbreedlove/repos","events_url":"https://api.github.com/users/markbreedlove/events{/privacy}","received_events_url":"https://api.github.com/users/markbreedlove/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T21:04:32Z","updated_at":"2015-06-09T21:04:32Z","body":"Yes, the index deletion happens in a handler, which means it only happens when the schema file has actually changed."}}