0

we are working on indexing data from multiple data sources using a single collection, for that specified data sources information in the data-config file and also updated managed-schema.xml by adding the fields from all the data sources by specifying the common unique key across all the sources.

Here is a sample config file.


  <entity >


  </entity> 

 </document> 

Blockquote

Error Details: Full Import failed:java.lang.RuntimeException:java.lang.RuntimeException: org.apache.solr.handler.dataimport.DataImportHandlerException: Invalid type for data source: Jdbc-2 Processing Document #1

3
  • The error message is telling you that the type you've set up for one of the entries is not valid - i.e. jdbc-2 is not a valid type. You can leave drop the type="" attribute for JDBC entries, since it's the default (and the full type name is JdbcDataSource). Commented Apr 19, 2020 at 11:12
  • Even we tried that too, but it's not working. Could you please let us know, if there are any alternative methods or steps to index the data from multiple data sources, and to import the csv, xml, json data to solr ? Your help will be highly appreciated!!! Thanking you. Commented Apr 20, 2020 at 7:38
  • The best way is to write your own indexing code that submits content to Solr through its regular /update handler. That will be more efficient and far more customizable than using DIH. Commented Apr 20, 2020 at 7:49

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.