On Mon, Mar 1, 2010 at 4:02 PM, Paul Tomblin <ptomb...@xcski.com> wrote:
> I have a schema with a field name "category" (<field name="category"
> type="string" stored="true" indexed="true"/>).  I'm trying to delete
> everything with a certain value of category with curl:
>
> I send:
>
> curl http://localhost:8080/solrChunk/nutch/update -H "Content-Type:
> text/xml" --data-binary '<delete><query>category:Banks</query></delete>'
>
> Response is:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <response>
> <lst name="responseHeader"><int name="status">0</int><int
> name="QTime">23</int></lst>
> </response>
>
> I send
>
> curl http://localhost:8080/solrChunk/nutch/update -H "Content-Type:
> text/xml" --data-binary '<commit/>'
>
> Response is:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <response>
> <lst name="responseHeader"><int name="status">0</int><int
> name="QTime">1914</int></lst>
> </response>
>
> but when I go back and query, it shows all the same results as before.
>
> Why isn't it deleting?
>
> --
> http://www.linkedin.com/in/paultomblin
> http://careers.stackoverflow.com/ptomblin
>

Do you query with curl also? If you use a web browser, Solr by default
uses http caching, so your browser will show you the old result of the
query.

-- 
Lance Norskog
goks...@gmail.com

Reply via email to