You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Joe Obernberger <jo...@gmail.com> on 2020/04/01 20:52:42 UTC
SolrCloud 8.2.0 - adding a field
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
Re: SolrCloud 8.2.0 - adding a field
Posted by Joe Obernberger <jo...@gmail.com>.
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
>