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.
indexing:re-indexing

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
re-indexing [2010/01/19 08:40] – fixed startup command: stop->start tillkindexing:re-indexing [2023/12/05 11:44] (current) demiankatz
Line 1: Line 1:
-====== Re-Indexing VuFind ======+====== Re-Indexing ======
  
-As VuFind develops, from time to time or between releases you may be expected to re-index your records.  If your data changes frequently, you may also find it worthwhile to do occasional refreshes to ensure that your index is accurate.  Whenever you need to rebuild your index, simply follow these steps:+As VuFind® develops, from time to time or between releases you may be expected to re-index your records.  If your data changes frequently, you may also find it worthwhile to do occasional refreshes to ensure that your index is accurate.  Before re-indexing, it is a good idea to clear out the entire index to ensure that any records which have been deleted from the source system do not persist in your search results. Whenever you need to rebuild your index, simply follow these steps:
  
-===== 1. Stop VuFind from running. =====+===== 1. Stop Solr from running. =====
  
-On Linux, you can run this command: +See the [[administration:starting_and_stopping_solr|Starting and Stopping]] page for details.
- +
-<code> +
-%> ./vufind.sh stop +
-</code> +
- +
-Under Windows, you can stop the Jetty service or abort vufind.bat by hitting Ctrl-C, depending on how you have things working.+
  
 ===== 2. Delete your index on the server. ===== ===== 2. Delete your index on the server. =====
  
-VuFind's index is found in the solr/biblio/index directory under your installation.  In Linux, you can issue this command from your VuFind base directory:+VuFind®'main index is found in the solr/biblio/index directory (as well as any spellcheck-related directories) under your installation.  In Linux, you can issue this command:
  
 <code> <code>
-%> rm -rf solr/biblio/index+rm -rf $VUFIND_HOME/solr/vufind/biblio/index $VUFIND_HOME/solr/vufind/biblio/spell*
 </code> </code>
  
-In Windowsyou can easily delete the folder through Windows Explorer.+:!: Prior to VuFind® 3.0, the paths were $VUFIND_HOME/solr/biblio/index and $VUFIND_HOME/solr/biblio/spell* (we later added a "/vufind/" directory inside the solr path to differentiate between VuFind®-specific data and the vendor-supplied Solr distribution).
  
 +In Windows, you can easily delete the folders through Windows Explorer.
  
-===== 3. Start the VuFind server back up. =====+If you want to delete one of VuFind®'s secondary indexes (authority records, course reserves, etc.), the process is the same, but you just need to replace "biblio" with the name of the appropriate Solr core.  Additionally, some cores will only have an "index" folder -- the spell* folders are not always present. 
 +===== 3. Start the VuFind® server back up. =====
  
-On Linux, you can run this command:+See the [[administration:starting_and_stopping_solr|Starting and Stopping]] page for details.
  
-<code> +===== 4Import all of your records again======
-%> ./vufind.sh start +
-</code>+
  
-Under Windows, you can start the Jetty service or run vufind.bat (available in 1.0RC2 and later versions).+See the instructions on the [[:indexing]] page for details.
  
-===== 4Import all of your records again. ======+===== 5[ Optional: re-index spellcheck]  ====== 
 + 
 +If spellcheck indexes are not populated during import or running optimization. 
 +<code> 
 +php $VUFIND_HOME/public/index.php util/optimize 
 +</code> 
 +You can re-index both manualy. The default "spellShingle" index 
 +<code> 
 +curl http://localhost:8983/solr/biblio/select?q=*:*&spellcheck=true&spellcheck.build=true 
 +</code> 
 +and basicSpell "spellcheck" index. 
 +<code> 
 +curl http://localhost:8983/solr/biblio/select?q=*:*&spellcheck.dictionary=basicSpell&spellcheck=true&spellcheck.build=true 
 +</code>
  
-See the instructions on the [[importing records]] page for details. 
 ---- struct data ---- ---- struct data ----
 +properties.Page Owner : 
 ---- ----
  
indexing/re-indexing.1263890413.txt.gz · Last modified: 2014/06/13 13:13 (external edit)