Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Add autoCommit time limit reduction to example Solr setup script.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Jan 15, 2016
1 parent 2b94f28 commit 4a74598
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/scripts/configure-solr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ if [ ! -e "$SOLR_SETUP_COMPLETE_FILE" ]; then
# Copy the Solr configuration into place over the default `collection1` core.
sudo cp -a $SOLR_DOWNLOAD_DIR/$SOLR_MODULE_NAME/solr-conf/4.x/. /var/solr/collection1/conf/

# Adjust the autoCommit time so index changes are committed in 1s.
sudo sed -i 's/\(<maxTime>\)\([^<]*\)\(<[^>]*\)/\11000\3/g' /var/solr/collection1/conf/solrconfig.xml

# Fix file permissions.
sudo chown -R solr:solr /var/solr/collection1/conf

Expand Down

0 comments on commit 4a74598

Please sign in to comment.