solrdih

How do I trigger a DIH import using DIH Commands


Solr is set up correctly and I can import data using the DIH Data Import Handler manually - i.e. using the user interface.

I am having trouble triggering the import via HTTP Request - Is there a setting for turning this on or what else could I be missing. I am simply hitting the url:

https://url.net/solr/#/corename/dataimport//dataimport?command=full-import&commit=true

I don't know wny dataimport is in the url twice but i've tried it with it in only once and still doesn't work.

All this does is load up the data import UI in solr admin, and I can see the last successful import time - the one I did manually via the UI - I've tried to hit it using Chrome browser, postman and via a powershell script.

I think I'm missing something simple but not sure what...?


Solution

  • The url for the dataimport for in solr is like :

    https://URL.net/solr/corename/dataimport?command=full-import&commit=true&indent=on&wt=json