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

Reply via email to