Not sure, but try using: <delete><query>document_id:"A-395" OR document_id:"A-1949"</query></delete>
On Thu, May 22, 2008 at 7:46 AM, Tracy Flynn <[EMAIL PROTECTED]> wrote: > > I'm trying to exploit 'Delete by Query' with multiple IDs in the query. > > I'm using vanilla SOLR 1.2 > > My schema specifies. > > <uniqueKey>document_id</uniqueKey> > > My unique document ids are of the form 'A-xxx' , 'T-xxx" and so on. > > The following individual delete works: > > curl http://work:8983/solr/update -H "Content-Type: text/xml" --data-binary > '<delete><id>A-3545</id></delete>' > curl http://work:8983/solr/update -H "Content-Type: text/xml" --data-binary > '<commit waitFlush="false" waitSearcher="false"/>' > > I've tried both of the following without successfully deleting anything. > > Attempt 1: > > curl http://work:8983/solr/update -H "Content-Type: text/xml" --data-binary > '<delete><query>id:A-395 OR id:A-1949</query></delete>' > curl http://work:8983/solr/update -H "Content-Type: text/xml" --data-binary > '<commit waitFlush="false" waitSearcher="false"/>' > > > Attempt 2: > > curl http://work:8983/solr/update -H "Content-Type: text/xml" --data-binary > '<delete><query>document_id:A-395 OR document_id:A-1949</query></delete>' > curl http://work:8983/solr/update -H "Content-Type: text/xml" --data-binary > '<commit waitFlush="false" waitSearcher="false"/>' > > > Any hints / ideas as to what I'm doing wrong, or where to look for the > problem? > > Tracy > -- Regards, Shalin Shekhar Mangar.