Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/sphinx-guides/source/container/running/demo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -239,23 +239,23 @@ Next, reconfigure Solr to know about the new metadata block.

You can back up your existing Solr schema like this:

``cp docker-dev-volumes/solr/data/data/collection1/conf/schema.xml docker-dev-volumes/solr/data/data/collection1/conf/schema.xml.orig``
``cp data/solr/data/data/collection1/conf/schema.xml data/solr/data/data/collection1/conf/schema.xml.orig``

You can see the existing fields Solr knows about like this:

``curl http://localhost:8983/solr/collection1/schema/fields``

Update your Solr schema with the following command:

``curl http://localhost:8080/api/admin/index/solr/schema | docker run -i --rm -v ./docker-dev-volumes/solr/data:/var/solr gdcc/configbaker:unstable update-fields.sh /var/solr/data/collection1/conf/schema.xml``
``curl http://localhost:8080/api/admin/index/solr/schema | docker run -i --rm -v ./data/solr/data:/var/solr gdcc/configbaker:unstable update-fields.sh /var/solr/data/collection1/conf/schema.xml``

Then, reload Solr:

``curl "http://localhost:8983/solr/admin/cores?action=RELOAD&core=collection1"``

You can get a diff of your old and new Solr schema like this:

``diff docker-dev-volumes/solr/data/data/collection1/conf/schema.xml.orig docker-dev-volumes/solr/data/data/collection1/conf/schema.xml``
``diff data/solr/data/data/collection1/conf/schema.xml.orig data/solr/data/data/collection1/conf/schema.xml``

You should be able to see the new fields from the metadata block you added in the following output:

Expand Down
Loading