Oh, and since the field name suggests that the field type is "string", be sure that you have the case exact - string fields are case sensitive.

So, change:

   <delete><query>skills_s:Perl</query></delete>

to

   <delete><query>skills_s:perl</query></delete>

-- Jack Krupansky

-----Original Message----- From: Jack Krupansky
Sent: Tuesday, December 18, 2012 9:03 AM
To: solr-user@lucene.apache.org
Subject: Re: Delete by Query not working properly

Make sure that your curl command includes:

 -H "Content-Type: text/xml"

For example,

curl http://localhost:8983/solr/update?commit=true -H "Content-Type:
text/xml" --data-binary '
<delete><query>id:doc-2012-12-18</query></delete>'

-- Jack Krupansky

-----Original Message----- From: Dixline
Sent: Tuesday, December 18, 2012 1:03 AM
To: solr-user@lucene.apache.org
Subject: Delete by Query not working properly

Hi,

I've deleted a document using http://localhost:8983/solr/update?stream.body=
<delete><query>skills_s:Perl</query></delete> and the committed the delete
also. Again if search using q=perl i'm able to see the same document but if
i search using q=skills_s:Perl it is not returning any results. Can someone
explain is this how delete by query works?

Thanks,
Dixline.M



--
View this message in context:
http://lucene.472066.n3.nabble.com/Delete-by-Query-not-working-properly-tp4027681.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to