Difference between revisions of "SUNScholar/Indexes/Rebuild"

From Libopedia
Jump to navigation Jump to search
Line 21: Line 21:
 
/home/dspace/bin/dspace index-init
 
/home/dspace/bin/dspace index-init
 
</pre>
 
</pre>
{{NANO}}
+
 
 
Make the script executeable.
 
Make the script executeable.
 
  chmod 0755 /home/dspace/scripts/build-indexes
 
  chmod 0755 /home/dspace/scripts/build-indexes
Line 27: Line 27:
 
Then run the script as follows
 
Then run the script as follows
 
  /home/dspace/scripts/build-indexes
 
  /home/dspace/scripts/build-indexes
 +
 +
{{NANO}}
  
 
==References==
 
==References==

Revision as of 15:21, 24 January 2014

Back to Browse Indexes

Example Script

Create a scripts folder.

mkdir /home/dspace/scripts

Edit the script.

nano /home/dspace/scripts/build-indexes

Copy and paste the following.

#!/bin/bash

echo "Building discovery indexes... Please wait"
/home/dspace/bin/dspace update-discovery-index -b

echo "Building search indexes... Please wait"
/home/dspace/bin/dspace index-init

Make the script executeable.

chmod 0755 /home/dspace/scripts/build-indexes

Then run the script as follows

/home/dspace/scripts/build-indexes

NANO Editor Help
CTL+O = Save the file and then press Enter
CTL+X = Exit "nano"
CTL+K = Delete line
CTL+U = Undelete line
CTL+W = Search for %%string%%
CTL+\ = Search for %%string%% and replace with $$string$$
CTL+C = Show line numbers

More info = http://en.wikipedia.org/wiki/Nano_(text_editor)


References