How to create Solr schema for collection using api in Solr Cloud mode?

333 views Asked by At

I created new collection

curl --request POST \
--url http://localhost:8983/api/collections \
--header 'Content-Type: application/json' \
--data '{
  "create": {
    "name": "members",
    "numShards": 1,
    "replicationFactor": 1
  }
}'

And by default predefined schema _default is used. How can I create my own schema and assign it to this collection?

Solr vesion: 9.2

I know, that in Solr Cloud mode I can't just simply create schema.xml inside solr node. Should I import somehow schema to Zookeeper?

0

There are 0 answers