Hi, I don't think my problem is unique, but I couldn't find any answers after
an hour of searching...

I have two databases with identical schemas and different data.  I want to
use DIH to index both into a single Solr index (right now, I have them in
separate indexes, but I find this cumbersome).  

So, my data-config.xml looks like

<dataSource type="JdbcDataSource" name="db1"
driver="oracle.jdbc.driver.OracleDriver" ... />
<dataSource type="JdbcDataSource" name="db2"
driver="oracle.jdbc.driver.OracleDriver" ... />               

Do I have to create entities for each data source, even though they contain
the same queries and operate on the same schema?  I know the following is
not possible:

    <entity name="event" dataSource="db1,db2" query="select ...

but I would like to avoid having to copy my entities for each data source. 
Am I missing something?  thank you!
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/DIH-Indexing-multiple-datasources-with-the-same-schema-tp877781p877781.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to