Towards an open source stack for e-commerce search
Apache License 2.0
141
stars
33
forks
source link
Documentation 'Kata 000: Setting up Chorus' specifies 'POST' method for uploading configset into Solr where PUT is required for Solr configsets API v2 #67
My example with POST (failed):
curl —user solr:SolrRocks -X POST —header “Content-Type:application/octet-stream” —data-binary @./solr/configsets/ecommerce.zip “http://localhost:8983/api/cluster/configs/ecommerce”
{
“responseHeader”:{
“status”:0,
“QTime”:0},
“availableSubPaths”:{“/cluster/configs/ecommerce/*”:[“PUT”]}}
My example with PUT (success):
curl —user solr:SolrRocks -X PUT —header “Content-Type:application/octet-stream” —data-binary @./solr/configsets/ecommerce.zip “http://localhost:8983/api/cluster/configs/ecommerce”
{
“responseHeader”:{
“status”:0,
“QTime”:27}}
Documentation:
My example with POST (failed): curl —user solr:SolrRocks -X POST —header “Content-Type:application/octet-stream” —data-binary @./solr/configsets/ecommerce.zip “http://localhost:8983/api/cluster/configs/ecommerce” { “responseHeader”:{ “status”:0, “QTime”:0}, “availableSubPaths”:{“/cluster/configs/ecommerce/*”:[“PUT”]}}
My example with PUT (success): curl —user solr:SolrRocks -X PUT —header “Content-Type:application/octet-stream” —data-binary @./solr/configsets/ecommerce.zip “http://localhost:8983/api/cluster/configs/ecommerce” { “responseHeader”:{ “status”:0, “QTime”:27}}