Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional Database Support? #22

Open
jwilder123 opened this issue Jan 19, 2021 · 5 comments
Open

Additional Database Support? #22

jwilder123 opened this issue Jan 19, 2021 · 5 comments

Comments

@jwilder123
Copy link

Any plans on adding support for Sql Server, MailEntityProcessor, etc?

@jmdeleon
Copy link

jmdeleon commented Aug 20, 2021

I would imagine most databases would be supported via SqlEntityProcessor if there is a proper JDBC driver available.

I have been able to successfully get the current data-import-handler-8.6.0.jar to work under Solr 8.9, creating an index out of CSV files using the CSVJDBC - CSV file JDBC driver (https://sourceforge.net/projects/csvjdbc/):

Here is my example configuration:

https://github.com/jmdeleon/dih-csv-jdbc-8

Why use the CSV JDBC driver with DataImportHandler instead of the built-in Solr CSV importers? It was/is much more flexible to use tools available in DIH like TemplateTransformer and ScriptTransformer to process CSV rows and fields, and you could eventually replace the CSV file with a proper database, moving from prototype to production-scale data sets.

@jwilder123
Copy link
Author

jwilder123 commented Aug 20, 2021 via email

@jmdeleon
Copy link

jmdeleon commented Aug 20, 2021

You can look over the configuration in my dih-csv-jdbc-8 repo, specifically the solrconfig.xml in the conf directory. I load the csvjdbc-XXX.jar JDBC driver file and the data-import-handler-XXX.jar file from the solrconfig.xml file. I imagine you'd have to set up a similar JDBC driver JAR file for SQL Server and adapt the SQL query (and subsequent column references) in the db-data-config.xml and schema.xml files for your purposes.

@jwilder123
Copy link
Author

jwilder123 commented Aug 20, 2021 via email

@chatman
Copy link
Collaborator

chatman commented Oct 16, 2021

Any plans on adding support for Sql Server, MailEntityProcessor, etc?

That would be great. Patches/PR welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants