I have the following in my data-config.xml:
<dataConfig>
<dataSource dataSource info"/>
<document>
<entity name="item"
pk="itemid"
query=" SELECT itemid,start,end,item_categoryid
FROM item"
deltaImportQuery=" SELECT * FROM item
WHERE itemid = '${dataimporter.delta.item_id}'"
deltaQuery=" SELECT itemid
FROM item
WHERE last_mod > '${dataimporter.last_index_time}'
OR create_time> '${dataimporter.last_index_time}'">
<field column="itemid" name="item_id"/>
<field column="start" name="start"/>
<field column="end" name="end"/>
<entity name="item_category"
pk="item_categoryid"
query=" SELECT item_categoryid,desc,title
FROM item_category
WHERE mbpostingid='${item.item_categoryid}'"
deltaImportQuery=" SELECT * FROM item_category
WHERE item_categoryid= '${dataimporter.delta.id}'"
deltaQuery="SELECT item_categoryid
FROM item_category
WHERE last_mod > '${dataimporter.last_index_time}'
OR create_time > '${dataimporter.last_index_time}'">
<field column="item_categoryid" name="id"/>
<field column="desc" name="desc"/>
<field column="title" name="title"/>
</entity>
</entity>
</document>
</dataConfig>
Whenever I run a delta-import
http://localhost:8983/solr/dataimport?command=delta-import
Solr is updating rows that have been updated in my database but it is not adding indexes for those that have been added and it is not deleting indexes for those that have been deleted.
Solr recognizes (fetches) my newly added rows to my database but it doesn't "process" them
<str name="Total Documents Processed">0</str>
Is there anything wrong with my dataConfig? Is there anything I can do?
Thanks, Caleb