On 6/2/2013 10:11 AM, PeriS wrote: > I found using the strategy mentioned at > http://wiki.apache.org/solr/DataImportHandlerDeltaQueryViaFullImport, it > works for me. Not sure what the difference is between this one and writing > individual queries for fetching the IDs first and then getting the data; I > mean I know the difference, but not sure why the previous way doesn't work.
Glad you found a solution. As for the initial problem: I am guessing that the pk value in the config file should be just "bib_id". That value is only used within dataimporter, it has no bearing on the Solr index. I think it also has nothing to do with the interaction with the database. As far as I know, it only gets used to validate SQL input data to make sure it is sane, especially with delta imports. Also, there might be a problem with the dataimporter namespace for subsitution variables, that has migrated to dih in newer versions, so you need things like this: ${dih.delta.bib_id} ${dih.last_index_time} I have seen problems where the dataimporter namespace hasn't worked, dih is much safer. Thanks, Shawn