About Features Downloads Getting Started Documentation Events Support GitHub

Love VuFind®? Consider becoming a financial supporter. Your support helps build a better VuFind®!

Site Tools


Warning: This page has not been updated in over over a year and may be outdated or deprecated.
administration:starting_and_stopping_solr

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
administration:starting_and_stopping_solr [2023/10/24 13:44] demiankatzadministration:starting_and_stopping_solr [2023/10/24 13:47] (current) – Removed notes about releases prior to 3.0. demiankatz
Line 1: Line 1:
 ====== Starting and Stopping Solr ====== ====== Starting and Stopping Solr ======
 +
 +:!: This page applies to VuFind® versions 3.0 and newer; if you are using a very old release, see the "Old revisions" button below to find earlier versions of the documentation.
  
 Once VuFind® is installed, it will only respond to search requests if its Solr back-end is active (unless, of course, you are relying on a third-party discovery service instead of a local index, in which case you can disregard this page entirely).  This page explains how to turn Solr on and off and how to automate the process if you wish. Once VuFind® is installed, it will only respond to search requests if its Solr back-end is active (unless, of course, you are relying on a third-party discovery service instead of a local index, in which case you can disregard this page entirely).  This page explains how to turn Solr on and off and how to automate the process if you wish.
Line 14: Line 16:
  
     chmod +x solr.sh     chmod +x solr.sh
- 
-:!: Prior to VuFind® 3.0, solr.sh was named vufind.sh; be sure to use the command appropriate for your version. 
  
 Note:  If you previously rebooted your system without manually stopping Solr, the script may mistakenly believe that it is still running.  In this case, a [[starting_and_stopping_solr#restarting_solr_manually|manual restart]] should solve the problem. Note:  If you previously rebooted your system without manually stopping Solr, the script may mistakenly believe that it is still running.  In this case, a [[starting_and_stopping_solr#restarting_solr_manually|manual restart]] should solve the problem.
Line 56: Line 56:
   * Type:  solr start   * Type:  solr start
  
-Note that some of the scripting for this command is created automatically as part of the install.bat setup process.  If you did not install VuFind® using install.bat, the command may not work.  You can re-run the install process to solve the problem+Note that some of the scripting for this command is created automatically as part of the install.php setup process.  If you did not run install.php while setting up the software, the command may not work.  You can re-run the install process to solve the problem.
- +
-:!: Prior to VuFind® 3.0, solr.bat was named vufind.bat; be sure to use the command appropriate for your version. Prior to VuFind® 1.0RC2, Windows support was not included.+
  
 ===== Stopping Solr Manually ===== ===== Stopping Solr Manually =====
Line 67: Line 65:
  
     ./solr.sh stop     ./solr.sh stop
- 
-:!: Prior to VuFind® 3.0, solr.sh was named vufind.sh; be sure to use the command appropriate for your version. 
  
 ==== Windows Method ==== ==== Windows Method ====
  
-When using VuFind® 3.0 or newer, you can stop Solr from the command line in Windows:+You can stop Solr from the command line in Windows:
  
   * At a command prompt, switch to your VuFind® directory.   * At a command prompt, switch to your VuFind® directory.
   * Type:  solr stop   * Type:  solr stop
- 
-In VuFind® 2.x or earlier, to stop a manually-started Solr instance under Windows, open the command prompt window where the server is running and hit Ctrl-C.  This will cause the process to shut down. 
  
 ===== Restarting Solr Manually ===== ===== Restarting Solr Manually =====
Line 86: Line 80:
  
     ./solr.sh restart     ./solr.sh restart
- 
-:!: Prior to VuFind® 3.0, solr.sh was named vufind.sh; be sure to use the command appropriate for your version. 
  
 ==== Windows Method ==== ==== Windows Method ====
  
-When using VuFind® 3.0 or newer, you can restart Solr from the command line in Windows:+You can restart Solr from the command line in Windows:
  
   * At a command prompt, switch to your VuFind® directory.   * At a command prompt, switch to your VuFind® directory.
   * Type:  solr restart   * Type:  solr restart
- 
-In VuFind® 2.x and earlier, there is no graceful way to restart a manually-started Solr instance under Windows.  Just follow the manual "stop" and "start" procedures described above. 
  
 ===== Killing an Unresponsive Solr Process ===== ===== Killing an Unresponsive Solr Process =====
Line 190: Line 180:
 ==== Windows Method ==== ==== Windows Method ====
  
-As of VuFind® 3.0, Solr can be started as a background process from the command line, so it should be possible manage it from within Windows; however, detailed instructions and best practices have not been developed as of this writing. Please feel free to contribute your own recommendations!+Solr can be started as a background process from the command line, so it should be possible manage it from within Windows; however, detailed instructions and best practices have not been developed as of this writing. Please feel free to contribute your own recommendations!
  
 ===== Taking the User Interface Offline ===== ===== Taking the User Interface Offline =====
administration/starting_and_stopping_solr.txt · Last modified: 2023/10/24 13:47 by demiankatz