Apache Solr: Solr instance is not running in SolrCloud mode

Error

curl --request POST \
> --url http://localhost:8983/api/collections \
> --header 'Content-Type: application/json' \
> --data '{
>   "name": "techproducts",
>   "numShards": 1,
>   "replicationFactor": 1
> }'
{"responseHeader":{"status":400,"QTime":416},"error":{"metadata":{"error-class":"org.apache.solr.common.SolrException","root-error-class":"org.apache.solr.common.SolrException"},"msg":"Solr instance is not running in SolrCloud mode.","code":400}}root@ip-172-31-41-118:/opt/solr-9.6.0/server/solr#

Solution

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x