Ok, I think I figured out what might be happening. It appears that the DataImporter issues the commit command without the expungeDeletes option set to true (default in 1.4 for a commit command is for expungeDeletes to be set to false). You can get around this by issuing the commit command manually:
curl "http://localhost:8983/solr/dataimport?command=delta-import&commit=false&optimize=false" curl "http://localhost:8983/solr/update" --data-binary '<commit expungeDeletes="true" />' -H "Content-type:text/xml; charset=utf-8" That fixed the issue for me, although ideally the DataImportHandler should run with the expungeDeletes option set to true, so that this could all happen in one command without having to wait for the DIH to finish before issuing the commit command. Is there a way to set the expungeDeletes option for the commit command of the DataImportHandler, so that delta imports with deletes can happen automatically? Mark.El wrote: > > Thanks I will look into it! > > -- View this message in context: http://old.nabble.com/%24DeleteDocbyQuery-in-solr-1.4-is-not-working-tp26376265p26583260.html Sent from the Solr - User mailing list archive at Nabble.com.