Wednesday, October 11, 2017

Updating the Solr index with revised or new metadata

Periodically, the Solr index needs to be updated. Sometimes new records are created that need to be added. Sometimes existing records require updates because field content is revised.

Add or update records in the Solr index

1. Use the FTP program to upload your data document (we'll call it "data.json") to be indexed to the folder

/home/username/solr/solr-5.3.0/

*Note: Alternatively, if you have trouble uploading to this folder, you can upload to another folder and adapt the path in the next step.

2. Using Terminal, connect to the VPS as the root user:

$ ssh root@example.com

3. Change directories into the solr directory:

# cd /home/username/solr/solr-5.3.0
 
4. Index the data document into the Solr index by running the following Terminal command:

$ bin/post -c blacklight-core data.json

*Note: If you uploaded the data.json file to a folder other than the one given in step 1, you will need to adapt the path. For example, if you uploaded the file to the /home/username/ folder, the command will be:

$ bin/post -c blacklight-core ../../data.json

1 comment:


  1. It is very informative blog and useful article thank you for sharing with us , keep posting learn more about Ruby on Rails keep updating blogger.on Ruby on Rails Online Course

    ReplyDelete