I am having some issues with solr Delta-import from MongoDB. Tried to do it from solr console using "delta-import" command. It executes successfully as log file indicates, but no delta import is happening in reality.
In solr data-config.xml
<dataConfig>
<dataSource name="MyMongo" type="MongoDataSource" database="solr-test" />
<document name="import">
<entity processor="MongoEntityProcessor"
query="" collection="zips" datasource="MyMongo"
deltaImportQuery="{id:{$eq:'${dih.delta.id}'}}"
deltaQuery="{id.getTimeStamp():{$gt:'${dih.last_index_time}'}}"
transformer="MongoMapperTransformer" name="sample_entity">
<field column="_id" name="id"/>
</entity>
</document>
</dataConfig>
In mongoDB, I have inserted the following record.
db.zips.insert({
"_id" : "99961",
"city" : "New York",
"loc" : [ -133.18479, 55.942471 ],
"pop" : 422, "state" : "NY"
})
After inserting this record, when I tried with "full-import", it's working fine but no luck with "delta-import". Please help.