You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Koji Sekiguchi (JIRA)" <ji...@apache.org> on 2009/02/08 15:34:59 UTC

[jira] Resolved: (SOLR-976) deleteByQuery is ignored when deleteById is placed prior to deleteByQuery in a

     [ https://issues.apache.org/jira/browse/SOLR-976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Koji Sekiguchi resolved SOLR-976.
---------------------------------

    Resolution: Fixed

Committed revision 742106.

> deleteByQuery is ignored when deleteById is placed prior to deleteByQuery in a <delete> 
> ----------------------------------------------------------------------------------------
>
>                 Key: SOLR-976
>                 URL: https://issues.apache.org/jira/browse/SOLR-976
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Koji Sekiguchi
>            Assignee: Koji Sekiguchi
>            Priority: Trivial
>             Fix For: 1.4
>
>         Attachments: SOLR-976.patch
>
>
> Due to the following if block, deleteByQuery cannot be executed. cmd.id and cmd.query should be set to null when UpdateProcessor chain is finished.
> {code:title=RunUpdateProcessor}
> public void processDelete(DeleteUpdateCommand cmd) throws IOException {
>   if( cmd.id != null ) {
>     updateHandler.delete(cmd);
>   }
>   else {
>     updateHandler.deleteByQuery(cmd);
>   }
>   super.processDelete(cmd);
> }
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.