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 ?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With