Deleting Data from SOLR Collection.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Deleting Data from SOLR Collection.

Nitish Kumar
Hi ,
I am working on SOLR upgrade from my current version  to SOLR 8.4.1 version  and I am unable to delete indexed data from solr collection .
I have tried this URL http://localhost:8983/solr/TakTech/update?stream.body=<delete><query>*:*</query></delete>&commit=true<http://localhost:8983/solr/TakTech/update?stream.body=%3cdelete%3e%3cquery%3e*:*%3c/query%3e%3c/delete%3e&commit=true>
and I am getting response like this
{  "error":{
    "metadata":[
      "error-class","org.apache.solr.common.SolrException",
      "root-error-class","org.apache.solr.common.SolrException"],
    "msg":"Stream Body is disabled. See http://lucene.apache.org/solr/guide/requestdispatcher-in-solrconfig.html for help",
    "code":400}}

I wanted to know ,how can I delete data from my collection is there any configuration issue ?

Thanks & Regards
N Kumar


******************************************************************************************
This message may contain confidential or proprietary information intended only for the use of the
addressee(s) named above or may contain information that is legally privileged. If you are
not the intended addressee, or the person responsible for delivering it to the intended addressee,
you are hereby notified that reading, disseminating, distributing or copying this message is strictly
prohibited. If you have received this message by mistake, please immediately notify us by
replying to the message and delete the original message and any copies immediately thereafter.

If you received this email as a commercial message and would like to opt out of future commercial
messages, please let us know and we will remove you from our distribution list.

Thank you.~
******************************************************************************************
FAFLD
Reply | Threaded
Open this post in threaded view
|

RE: Deleting Data from SOLR Collection.

Vadim Ivanov
Probably solution is here
https://stackoverflow.com/questions/51416042/solr-error-stream-body-is-disab
led/51420987

> -----Original Message-----
> From: Nitish Kumar [mailto:[hidden email]]
> Sent: Friday, February 14, 2020 10:28 AM
> To: [hidden email]
> Subject: Deleting Data from SOLR Collection.
>
> Hi ,
> I am working on SOLR upgrade from my current version  to SOLR 8.4.1
version

> and I am unable to delete indexed data from solr collection .
> I have tried this URL
> http://localhost:8983/solr/TakTech/update?stream.body=<delete><query>
> *:*</query></delete>&commit=true<http://localhost:8983/solr/TakTech/u
> pdate?stream.body=%3cdelete%3e%3cquery%3e*:*%3c/query%3e%3c/del
> ete%3e&commit=true>
> and I am getting response like this
> {  "error":{
>     "metadata":[
>       "error-class","org.apache.solr.common.SolrException",
>       "root-error-class","org.apache.solr.common.SolrException"],
>     "msg":"Stream Body is disabled. See
> http://lucene.apache.org/solr/guide/requestdispatcher-in-solrconfig.html
> for help",
>     "code":400}}
>
> I wanted to know ,how can I delete data from my collection is there any
> configuration issue ?
>
> Thanks & Regards
> N Kumar
>
>
> **********************************************************
> ********************************
> This message may contain confidential or proprietary information intended
> only for the use of the
> addressee(s) named above or may contain information that is legally
> privileged. If you are not the intended addressee, or the person
responsible
> for delivering it to the intended addressee, you are hereby notified that
> reading, disseminating, distributing or copying this message is strictly
> prohibited. If you have received this message by mistake, please
> immediately notify us by replying to the message and delete the original
> message and any copies immediately thereafter.
>
> If you received this email as a commercial message and would like to opt
out
> of future commercial messages, please let us know and we will remove you
> from our distribution list.
>
> Thank you.~
> **********************************************************
> ********************************
> FAFLD

Reply | Threaded
Open this post in threaded view
|

Re: Deleting Data from SOLR Collection.

Jan Høydahl / Cominvent
In reply to this post by Nitish Kumar
Try using HTTP POST to send your <delete>…</delete> command in the body instead of using stream.body. E.g. using the cURL utility:

curl -XPOST http://localhost:8983/solr/TakTech/update?commit=true -d '<delete><query>*:*</query></delete>'

Or go to Admin UI, find your collection, select «Documents» sub meny, change the dropdown from JSON to XML, paste the same XML command into the box and click the blue button :)

Jan

> 14. feb. 2020 kl. 08:27 skrev Nitish Kumar <[hidden email]>:
>
> Hi ,
> I am working on SOLR upgrade from my current version  to SOLR 8.4.1 version  and I am unable to delete indexed data from solr collection .
> I have tried this URL http://localhost:8983/solr/TakTech/update?stream.body=<delete><query>*:*</query></delete>&commit=true<http://localhost:8983/solr/TakTech/update?stream.body=%3cdelete%3e%3cquery%3e*:*%3c/query%3e%3c/delete%3e&commit=true>
> and I am getting response like this
> {  "error":{
>    "metadata":[
>      "error-class","org.apache.solr.common.SolrException",
>      "root-error-class","org.apache.solr.common.SolrException"],
>    "msg":"Stream Body is disabled. See http://lucene.apache.org/solr/guide/requestdispatcher-in-solrconfig.html for help",
>    "code":400}}
>
> I wanted to know ,how can I delete data from my collection is there any configuration issue ?
>
> Thanks & Regards
> N Kumar
>
>
> ******************************************************************************************
> This message may contain confidential or proprietary information intended only for the use of the
> addressee(s) named above or may contain information that is legally privileged. If you are
> not the intended addressee, or the person responsible for delivering it to the intended addressee,
> you are hereby notified that reading, disseminating, distributing or copying this message is strictly
> prohibited. If you have received this message by mistake, please immediately notify us by
> replying to the message and delete the original message and any copies immediately thereafter.
>
> If you received this email as a commercial message and would like to opt out of future commercial
> messages, please let us know and we will remove you from our distribution list.
>
> Thank you.~
> ******************************************************************************************
> FAFLD