1

I have created a Solr Index whose documents are formed from Two databases db1 and db2. I can successfully do a full-import as follows:

    <entity name="ent1" dataSource="db1" query="select ID_DB1 from table1">  
       <field column="ID_DB1" name="ID_DB1"/>  

       <entity name="ent2" dataSource="db2" query="select ID_DB2 from table2 where ID_DB2='${ent1.ID_DB1}'">  
       <field column="ID_DB2" name="ID_DB2"/>  
       </entity>    

    </entity>

But delta import throws NullPointerException.
How to write delta-query, parent-delta-query and delta-import-query for this scenario?
Any help is appreciated!

Mavellin
  • 665
  • 7
  • 17

1 Answers1

1

This is possible to have multiple datasources in Solr DIH. Just check this out. You should specify a datasource per <entity>.

Mohsen
  • 3,512
  • 3
  • 38
  • 66
  • Thanks for answering! But I have already used 2 data-sources in my description of the scenario, where I could do a Full-import. I am asking help for doing delta-import in this scenario..! – Mavellin Sep 17 '12 at 11:34