Difference between revisions of "SUNScholar/Indexes/Rebuild"

From Libopedia
Jump to navigation Jump to search
 
(63 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<center>
 
<center>
 +
'''[[SUNScholar/Install DSpace/S11|Back to After Installation Tasks]]'''
 
  '''[[SUNScholar/Browse Indexes|Back to Browse Indexes]]'''
 
  '''[[SUNScholar/Browse Indexes|Back to Browse Indexes]]'''
 +
'''[[SUNScholar/Search_Indexes|Back to Search Indexes]]'''
 
</center>
 
</center>
==Example Script==
 
Create a scripts folder.
 
  
mkdir /home/dspace/scripts
+
==Introduction==
 +
After modifying any index configuration and <font color="red">'''then rebuilding your webapps'''</font>, you will need to rebuild your indexes.
  
Edit the script.
+
This script allows to rebuild indexes at any time later.
  
nano /home/dspace/scripts/build-indexes
+
==Requirements==
 
+
<font color="red">'''[[SUNScholar/Install_DSpace/S03#Step_3.2|Click here]] to setup the "source" folder first.'''</font>
Copy and paste the following.
+
==Instructions==
<pre>
+
===[[SUNScholar/Indexes/Rebuild/6.X|For DSpace 6.X]]===
#!/bin/bash
+
===[[SUNScholar/Indexes/Rebuild/5.X|For DSpace 5.X]]===
 
+
===[[SUNScholar/Indexes/Rebuild/4.X|For DSpace 4.X]]===
echo "Building discovery indexes... Please wait"
+
===[[SUNScholar/Indexes/Rebuild/3.X|For DSpace 3.X]]===
/home/dspace/bin/dspace update-discovery-index -b
 
 
 
echo "Building search indexes... Please wait"
 
/home/dspace/bin/dspace index-init
 
</pre>
 
{{NANO}}
 
Make the script executeable.
 
chmod 0755 /home/dspace/scripts/build-indexes
 
 
 
Then run the script as follows
 
/home/dspace/scripts/build-indexes
 
  
 
==References==
 
==References==
 +
*https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/discovery/IndexClient.java#L100-L130
 +
----
 +
*https://wiki.duraspace.org/display/DSDOC5x/Discovery#Discovery-DiscoverySolrIndexMaintenance
 +
*https://wiki.duraspace.org/display/DSDOC4x/Discovery#Discovery-DiscoverySolrIndexMaintenance
 +
----
 +
*https://wiki.duraspace.org/display/DSDOC5x/Legacy+methods+for+re-indexing+content
 
*https://wiki.duraspace.org/display/DSDOC4x/Legacy+methods+for+re-indexing+content
 
*https://wiki.duraspace.org/display/DSDOC4x/Legacy+methods+for+re-indexing+content
 
*https://wiki.duraspace.org/pages/viewpage.action?pageId=32474035
 
*https://wiki.duraspace.org/pages/viewpage.action?pageId=32474035
*https://wiki.duraspace.org/display/DSDOC18/ReIndexing+Content+%28for+Browse+or+Search%29
+
----
 +
*https://wiki.duraspace.org/display/DSPACE/Configure+full+text+indexing
 +
*https://wiki.duraspace.org/display/DSPACE/Re-index+DSpace
 +
 
 +
{{Tomcat7}}
 +
 
 +
[[Category:System Administration]]
 +
[[Category:Installation]]
 +
__NOTOC__

Latest revision as of 15:04, 30 October 2019