Uploading the schema and configuration

Steps to create a Solr index by posting the solrconfig.xml and schema.xml.

This procedure describes how to create a Solr index by posting the solrconfig.xml and schema.xml and creating the Solr core. You can follow similar steps using an example to create a Solr index and insert data into Solr and Cassandra.

Procedure

  1. Post the configuration file using the cURL utility:
    curl http://localhost:8983/solr/resource/keyspace.table/solrconfig.xml
      --data-binary @solrconfig.xml -H 'Content-type:text/xml; charset=utf-8'
  2. Post the schema file:
    curl http://localhost:8983/solr/resource/keyspace.table/schema.xml
      --data-binary @schema.xml -H 'Content-type:text/xml; charset=utf-8'