lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scott chu (朱炎詹) <scott....@udngroup.com>
Subject Re: Delete by query issue
Date Thu, 26 Aug 2010 02:45:22 GMT
Excuse me, what's the hyphen before  the field name 'date_added_solr'? Is this some kind of
new query format that I didn't know?

<delete><query>-date_added_solr:[* TO *]</query></delete>'

----- Original Message ----- 
From: "Max Lynch" <ihasmax@gmail.com>
To: <solr-user@lucene.apache.org>
Sent: Thursday, August 26, 2010 6:12 AM
Subject: Delete by query issue


> Hi,
> I am trying to delete all documents that have null values for a certain
> field.  To that effect I can see all of the documents I want to delete by
> doing this query:
> -date_added_solr:[* TO *]
> 
> This returns about 32,000 documents.
> 
> However, when I try to put that into a curl call, no documents get deleted:
> curl http://localhost:8985/solr/newsblog/update?commit=true -H
> "Content-Type: text/xml" --data-binary '<delete><query>-date_added_solr:[*
> TO *]</query></delete>'
> 
> Solr responds with:
> <response>
> <lst name="responseHeader"><int name="status">0</int><int
> name="QTime">364</int></lst>
> </response>
> 
> But nothing happens, even if I explicitly issue a commit afterward.
> 
> Any ideas?
> 
> Thanks.
>


--------------------------------------------------------------------------------



%<&b6G$J0T.'$$'d(l/f,r!C
Checked by AVG - www.avg.com 
Version: 9.0.851 / Virus Database: 271.1.1/3093 - Release Date: 08/25/10 14:34:00

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message