title: Solr : Index does not have an operational DataImportHandler defined
body: <p>I was trying to use DataImportHandler to index my MySQL Database using Solr in Cloud Mode, the following are the configurations it uses the _default configsets.</p>
  
  <p>solr-7.3.0\server\solr\configsets\_default\conf\<strong>data-config.xml</strong></p>
  
  <pre><code># define data source
  &lt;dataConfig&gt;
      &lt;dataSource type="JdbcDataSource" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/expressg_dbkevinzeigler" user="root" password=""/&gt;
      &lt;document&gt;
        &lt;entity name="product"  
          pk="id_prd"
          query="SELECT id_prd, name_prd, description_prd FROM products_prd"&gt;
           &lt;field column="id_prd" name="id"/&gt;
           &lt;field column="name_prd" name="name"/&gt;       
        &lt;/entity&gt;
      &lt;/document&gt;
  &lt;/dataConfig&gt;
  </code></pre>
  
  <p>Added the following to:
  solr-7.3.0\server\solr\configsets\_default\conf\<strong>solrconfig.xml</strong></p>
  
  <pre><code>&lt;lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-dataimporthandler-7.3.0.jar" /&gt;
    &lt;lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-dataimporthandler-7.3.0-extras.jar" /&gt;
  
  &lt;requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler"&gt;
          &lt;lst name="defaults"&gt;
            &lt;str name="config"&gt;data-config.xml&lt;/str&gt;
          &lt;/lst&gt;
      &lt;/requestHandler&gt;
  </code></pre>
  
  <p>Added the following to:
  solr-7.3.0\server\solr\configsets\_default\conf\<strong>managed-schema.xml</strong></p>
  
  <pre><code>&lt;field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" /&gt; 
      &lt;field name="name" type="string" indexed="true" stored="true" multiValued="false" /&gt;
  </code></pre>
  
  <p>When I tried DataImport in Solr Admin on my current collection it says:</p>
  
  <p><strong>"The solrconfig.xml file for this index does not have an operational DataImportHandler defined!"</strong></p>
  
  <p>Anybody encounter the same?</p>