On Fri, Feb 20, 2009 at 8:01 PM, Rui Pereira <ruipereira...@gmail.com>wrote:

> Only one more question: doesn't full-import deletes all records before
> execution, or in this case only deletes the entities passed in the url?
>

If no 'entity' parameter is specified, a full-import deletes all existing
documents. But if a 'entity' is specified then the deleteQuery is not
executed. There's no way for DataImportHandler to figure out which documents
were generated by which entity.

You can use the 'preImportDeleteQuery' attribute on an entity to specify a
delete query which can delete the documents created by that entity.

http://wiki.apache.org/solr/DataImportHandler#head-70d3fdda52de9ee4fdb54e1c6f84199f0e1caa76

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to