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
indexing:re-indexing [2015/12/14 16:38] – ↷ Page moved from re-indexing to indexing:re-indexing demiankatzindexing:re-indexing [2023/12/05 11:44] (current) demiankatz
Line 1: Line 1:
 ====== Re-Indexing ====== ====== 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 Solr from running. ===== ===== 1. Stop Solr from running. =====
  
-See the [[:starting_and_stopping_vufind|Starting and Stopping]] page for details.+See the [[administration:starting_and_stopping_solr|Starting and Stopping]] page for details.
  
 ===== 2. Delete your index on the server. ===== ===== 2. Delete your index on the server. =====
  
-VuFind's 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 from your VuFind base directory:+VuFind®'s 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 solr/biblio/spell*+rm -rf $VUFIND_HOME/solr/vufind/biblio/index $VUFIND_HOME/solr/vufind/biblio/spell*
 </code> </code>
 +
 +:!: 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. In Windows, you can easily delete the folders through Windows Explorer.
  
-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. +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. =====+===== 3. Start the VuFind® server back up. =====
  
-See the [[:starting_and_stopping_vufind|Starting and Stopping]] page for details.+See the [[administration:starting_and_stopping_solr|Starting and Stopping]] page for details.
  
 ===== 4. Import all of your records again. ====== ===== 4. Import all of your records again. ======
  
-See the instructions on the [[indexing]] page for details.+See the instructions on the [[:indexing]] page for details. 
 + 
 +===== 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> 
 ---- struct data ---- ---- struct data ----
 +properties.Page Owner : 
 ---- ----
  
indexing/re-indexing.1450111087.txt.gz · Last modified: 2015/12/14 16:38 by demiankatz