lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Obernberger <joseph.obernber...@gmail.com>
Subject Re: SolrCloud 8.2.0 - adding a field
Date Wed, 01 Apr 2020 21:01:43 GMT
Nevermind - I see that I need to specify an existing collection not a 
schema.  There is no collection called UNCLASS - only a schema.

-Joe

On 4/1/2020 4:52 PM, Joe Obernberger wrote:
> Hi All - I'm trying this:
>
> curl -X POST -H 'Content-type:application/json' --data-binary 
> '{"add-field":{"name":"Para450","type":"text_general","stored":"false","indexed":"true","docValues":"false","multiValued":"false"}}'

> http://ursula.querymasters.com:9100/api/cores/UNCLASS/schema
>
> This results in:
>
> {
>   "error":{
>     "metadata":[
>       "error-class","org.apache.solr.common.SolrException",
>       "root-error-class","org.apache.solr.common.SolrException"],
>     "msg":"no core retrieved for UNCLASS",
>     "code":404}}
>
> I've also tried going to api/c:
>
> curl -X POST -H 'Content-type:application/json' --data-binary 
> '{"add-field":{"name":"Para450","type":"text_general","stored":"false","indexed":"true","docValues":"false","multiValued":"false"}}'

> http://ursula.querymasters.com:9100/api/c/UNCLASS/schema
>
> results in:
>
> {
>   "error":{
>     "metadata":[
>       "error-class","org.apache.solr.common.SolrException",
>       "root-error-class","org.apache.solr.common.SolrException"],
>     "msg":"no such collection or alias",
>     "code":400}}
>
> What am I doing wrong?  The schema UNCLASS does exist in Zookeeper.
>
> Thanks!
>
> -Joe
>

Mime
View raw message