DataImportHandlerDeltaQueryViaFullImport and delete query
Hi, when using http://wiki.apache.org/solr/DataImportHandlerDeltaQueryViaFullImport to periodically run a delta-import, is it necessary to run a separate "normal" delta-import after it to delete entries from the index (using deletedPkQuery)? If so, what's the point of using this method for running delta-imports? If not, how can i delete specific entries with this delta-import method? regards -robert
Re: DataImportHandlerDeltaQueryViaFullImport and delete query
It runs delta imports faster. Normally you need to get the Pks that changed, and then run it through query="" which is slow when you have a lot of Ids It would be better if someone could just write a new fastdeltaquery="" s that you could do it in one step and also remove the queries... On 4/18/11 1:26 AM, "Robert Gründler" wrote: >Hi, > >when using >http://wiki.apache.org/solr/DataImportHandlerDeltaQueryViaFullImport to >periodically >run a delta-import, is it necessary to run a separate "normal" >delta-import after it to delete entries >from the index (using deletedPkQuery)? > >If so, what's the point of using this method for running delta-imports? >If not, how can i delete specific >entries with this delta-import method? > >regards > > >-robert > > >
Re: DataImportHandlerDeltaQueryViaFullImport and delete query
On 18.04.11 09:23, Bill Bell wrote: It runs delta imports faster. Normally you need to get the Pks that changed, and then run it through query="" which is slow when you have a lot of Ids but the query="" only adds/updates entries. I'm not sure how to delete entries by running a query like "select ... from ... where deleted = 1" . as far as i understand there's "*postImportDeleteQuery" and "**deletedPkQuery" *to achieve this.* *Where according to the wiki *deletedPkQuery* is only used by delta-imports, and *postImportDeleteQuery* is used after a full import. And from my understanding using "dataimport?command=full-import&clean=false" matches neither of the two, or am i wrong with that?* * thanks, -robert * *