Re: Call indexer after action on website
Bit of a delayed answer, but your suggestion worked, so thank you! :) -- View this message in context: http://lucene.472066.n3.nabble.com/Call-indexer-after-action-on-website-tp3105153p3162743.html Sent from the Solr - User mailing list archive at Nabble.com.
Call indexer after action on website
People can add advertisements on my website. What I do now is run a scheduled task on my Windows server every night at 3AM. But I want to do a delta import as soon as the user saves a new advertisement on my website. Now, from the server doing the delta import is as easy as calling: http://localhost:8983/solr/dataimport?command=delta-import But, as you can see, that is from localhost, which I cant call from my frontend website. How can I do a delta import after a visitor action on the front? -- View this message in context: http://lucene.472066.n3.nabble.com/Call-indexer-after-action-on-website-tp3105153p3105153.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Call indexer after action on website
On 6/24/2011 10:55 AM, PeterKerk wrote: Now, from the server doing the delta import is as easy as calling: http://localhost:8983/solr/dataimport?command=delta-import But, as you can see, that is from localhost, which I cant call from my frontend website. How can I do a delta import after a visitor action on the front? The port number 8983 suggests that you are using the included Jetty. Unless you have taken steps in the container configuration to lock it down so only localhost has access, it should be accessible from anywhere that can reach it, so your application code running on the webserver can just request the following URL, which it could even do with the IP address instead of my example hostname: http://host.example.com:8983/solr/dataimport?command=delta-import It can even check for an error or success status using a similar URL: http://host.example.com:8983/solr/dataimport Thanks, Shawn