Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing required parameter: name when using solr CREATEALIAS

Tags:

solrcloud

I submitted a reqest to my solr cloud server with curl:

curl http://solrserver1:8983/solr/admin/collections?action=CREATEALIAS&name=bf&collections=collection1,collection2

It return a 400 error and said: Missing required parameter: name. But you see in the command line I really provided a name parameter.

I saw several post online talking about CREATEALIAS action, so I think it must be some mistake of myself. My solr server is version 4.6.1

Could anyone know what's the reason ?

like image 548
syan Avatar asked Jun 03 '26 18:06

syan


1 Answers

Should add quotes like this:

curl "http://solrserver1:8983/solr/admin/collections?action=CREATEALIAS&name=bf&collections=collection1,collection2"

It works and return status 0

like image 156
syan Avatar answered Jun 06 '26 05:06

syan