{"action":"created","issue":{"url":"https://api.github.com/repos/noamt/elasticsearch-grails-plugin/issues/80","labels_url":"https://api.github.com/repos/noamt/elasticsearch-grails-plugin/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/noamt/elasticsearch-grails-plugin/issues/80/comments","events_url":"https://api.github.com/repos/noamt/elasticsearch-grails-plugin/issues/80/events","html_url":"https://github.com/noamt/elasticsearch-grails-plugin/issues/80","id":54924860,"number":80,"title":"indexing domain objects, without restarting server","user":{"login":"mayurkarve","id":10619455,"avatar_url":"https://avatars.githubusercontent.com/u/10619455?v=3","gravatar_id":"","url":"https://api.github.com/users/mayurkarve","html_url":"https://github.com/mayurkarve","followers_url":"https://api.github.com/users/mayurkarve/followers","following_url":"https://api.github.com/users/mayurkarve/following{/other_user}","gists_url":"https://api.github.com/users/mayurkarve/gists{/gist_id}","starred_url":"https://api.github.com/users/mayurkarve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayurkarve/subscriptions","organizations_url":"https://api.github.com/users/mayurkarve/orgs","repos_url":"https://api.github.com/users/mayurkarve/repos","events_url":"https://api.github.com/users/mayurkarve/events{/privacy}","received_events_url":"https://api.github.com/users/mayurkarve/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-20T19:07:15Z","updated_at":"2015-01-30T16:37:01Z","closed_at":null,"body":"Hi,\r\nI am deploying the grails war on a tomcat server. When I need to reindex the data, right now I restart my tomcat, which runs the following line of code from bootstrap: elasticSearchService.index(). Is there a way to reindex without needing to restart tomcat or send a request to a controller/action which invokes the line of code? Maybe there is a grails command like \"grails index-elastic-server\" that I don't know about. Please let me know. Thanks for all your great work.\r\nMayur"},"comment":{"url":"https://api.github.com/repos/noamt/elasticsearch-grails-plugin/issues/comments/72229234","html_url":"https://github.com/noamt/elasticsearch-grails-plugin/issues/80#issuecomment-72229234","issue_url":"https://api.github.com/repos/noamt/elasticsearch-grails-plugin/issues/80","id":72229234,"user":{"login":"motleycrew","id":9128579,"avatar_url":"https://avatars.githubusercontent.com/u/9128579?v=3","gravatar_id":"","url":"https://api.github.com/users/motleycrew","html_url":"https://github.com/motleycrew","followers_url":"https://api.github.com/users/motleycrew/followers","following_url":"https://api.github.com/users/motleycrew/following{/other_user}","gists_url":"https://api.github.com/users/motleycrew/gists{/gist_id}","starred_url":"https://api.github.com/users/motleycrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motleycrew/subscriptions","organizations_url":"https://api.github.com/users/motleycrew/orgs","repos_url":"https://api.github.com/users/motleycrew/repos","events_url":"https://api.github.com/users/motleycrew/events{/privacy}","received_events_url":"https://api.github.com/users/motleycrew/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T16:37:01Z","updated_at":"2015-01-30T16:37:01Z","body":"Hi Marco,\r\nFirst of all, thank you for your great work on the plugin version 0.4.0. We updated it yesterday and we did not see any merge exceptions that we usually see. Hats off!\r\nWe are building a new product and our db schema changes quite often. Correspondingly, we also end up making quite a  few changes to our database outside of our grails application. Therefore, we need something to trigger indexing on demand and not rely on bootstrap. \r\nI wrote a grails script  which can index db it works fine when grails is installed (dev boxes). However on production we don't have grails installed and we would not like to do so.I am not sure how I can invoke grails script, when app is deployed as war on Tomcat. Any pointers will be very helpful.\r\nCheers,Abhishek\r\nincludeTargets << grailsScript(\"_GrailsInit\")\r\nincludeTargets << grailsScript(\"_GrailsBootstrap\")\r\nincludeTargets << grailsScript(\"_GrailsClasspath\")\r\n\r\ntarget(runElastic: \"Run Elastic Search\") {\r\n    compile()\r\n    depends(configureApp)\r\n    appCtx.getBean(\"elasticSearchService\").index()\r\n}\r\n\r\n\r\nsetDefaultTarget(runElastic)\r\n\r\n\r\n\r\n\r\nDate: Fri, 30 Jan 2015 05:54:29 -0800\r\nFrom: notifications@github.com\r\nTo: elasticsearch-grails-plugin@noreply.github.com\r\nCC: andubey@gmail.com\r\nSubject: Re: [elasticsearch-grails-plugin] indexing domain objects, without restarting server (#80)\r\n\r\nHi @mayurkarve, @motleycrew,\r\n\n\nDid that solve your issue? Is there any further help needed?\r\n\n\n—\r\nReply to this email directly or view it on GitHub.\n\n  \n    \n    \n  \n  \n \t\t \t   \t\t  ="}}