The Solr DataImport Handler (DIH) is disabled across the whole Opensolr platform, on every Solr version, for security reasons. Send your data through the Solr update API instead.
01 · Why it is off
DIH pulls data from a source you set inside the index configuration, and some of its features can read files and reach other servers. On a shared platform that is a risk, so every request to DIH is refused, on every Solr version Opensolr runs. It cannot be enabled on an index.
02 · Import your data instead
Read the rows from your database in your own application or script and send them to your index as JSON, XML or CSV, with the username and password of your index:
curl -u USERNAME:PASSWORD "https://YOUR_SOLR_HOST/solr/YOUR_INDEX/update?commit=true" \ -H "Content-Type: application/json" \ -d '[{"id":"1","name":"First row","description":"Text to search"}]'
Client libraries such as SolrJ, Solarium or pysolr do the same from your code. Every field you send needs a field in schema.xml.
03 · Solr versions
DIH was removed in Solr 9
On Solr 9 and later, send your data through the Solr API instead: JSON or XML to /update, a CSV file, or a client library such as SolrJ, Solarium or pysolr.
Older Solr versions retire starting 05/01/2027
Opensolr migrates your indexes to a current Solr version for a flat one-time fee of 100 EUR / Index, only at your explicit request. Payment is made before the migration starts: we begin the migration upon clearance of your invoice. Indexes still on a retired server on that date are permanently deleted and cannot be recovered. The Solr versions you can pick today: Regions.
The username and password of a new index: Default HTTP Auth Credentials.