Re: Deleting Data from SOLR Collection.

2020-02-14 Thread Jan Høydahl
Try using HTTP POST to send your … 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 
'*:*'

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 :
> 
> 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=*:*=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



RE: Deleting Data from SOLR Collection.

2020-02-14 Thread 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:nnitishku...@firstam.com]
> Sent: Friday, February 14, 2020 10:28 AM
> To: solr-user@lucene.apache.org
> 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=
> *:*=true pdate?stream.body=%3cdelete%3e%3cquery%3e*:*%3c/query%3e%3c/del
> ete%3e=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