lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Delete document
Date Thu, 06 Mar 2008 23:20:31 GMT
Hi,

Combine those id:XXX id:YYY's with an OR: id:XXX OR id:YYY ..... and post that for deletion.
 That should do it.

Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch

----- Original Message ----
From: Feng Gao <fgao@caiman.com>
To: solr-user@lucene.apache.org
Sent: Tuesday, March 4, 2008 5:14:58 PM
Subject: RE: Delete document

Try this: <delete><id>05991</id></delete>

As I remember, we only can delete one doc once, but I am not sure. Give that
a try later.

Feng

-----Original Message-----
From: Jae Joo [mailto:jaejoo@gmail.com] 
Sent: March 4, 2008 5:06 PM
To: solr-user
Subject: Delete document

Hi,

I have many document to be deleted and the xml file is built shown as below.

delete.xml

<delete><query>id:0286-14582373</query></delete>
<delete><query>id:0286-14582372</query></delete>
<delete><query>id:0286-14582371</query></delete>
<delete><query>id:0286-14582415</query></delete>
<delete><query>id:0286-14582414</query></delete>
<delete><query>id:0286-14582413</query></delete>
<delete><query>id:0286-14582412</query></delete>
<delete><query>id:0286-14582411</query></delete>
<delete><query>id:0286-14582410</query></delete>
<delete><query>id:0286-14582409</query></delete>
<delete><query>id:0286-14582408</query></delete>



Once I post it using post.sh command (post.sh delete.xml), the only first
document is deleted.

Did I miss something?

Thanks,

Jae





Mime
View raw message