Difference between revisions of "SUNScholar/Indexes/Rebuild"

From Libopedia
Jump to navigation Jump to search
 
(53 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]]'''
  '''[[SUNScholar/SOLR Discovery|Back to Discovery]]'''
 
 
</center>
 
</center>
  
==Example Script==
+
==Introduction==
Create a scripts folder.
+
After modifying any index configuration and <font color="red">'''then rebuilding your webapps'''</font>, you will need to rebuild your indexes.
 
 
mkdir /home/dspace/scripts
 
 
 
Edit the script.
 
 
 
nano /home/dspace/scripts/build-indexes
 
 
 
Copy and paste the following.
 
<pre>
 
#!/bin/bash
 
 
 
echo "Building discovery indexes... Please wait"
 
/home/dspace/bin/dspace update-discovery-index -b -f
 
 
 
## This is only required if you use the old indexes ##
 
## Uncomment both lines below to enable ##
 
#echo "Building search indexes... Please wait"
 
#/home/dspace/bin/dspace index-init
 
</pre>
 
 
 
Make the script executable.
 
chmod 0755 /home/dspace/scripts/build-indexes
 
  
Now you can re-build your indexes '''WHEN NEEDED''' by simply typing;
+
This script allows to rebuild indexes at any time later.
/home/dspace/scripts/build-indexes
 
  
{{NANO}}
+
==Requirements==
 +
<font color="red">'''[[SUNScholar/Install_DSpace/S03#Step_3.2|Click here]] to setup the "source" folder first.'''</font>
 +
==Instructions==
 +
===[[SUNScholar/Indexes/Rebuild/6.X|For DSpace 6.X]]===
 +
===[[SUNScholar/Indexes/Rebuild/5.X|For DSpace 5.X]]===
 +
===[[SUNScholar/Indexes/Rebuild/4.X|For DSpace 4.X]]===
 +
===[[SUNScholar/Indexes/Rebuild/3.X|For DSpace 3.X]]===
  
 
==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/pages/viewpage.action?pageId=32474035
 +
----
 
*https://wiki.duraspace.org/display/DSPACE/Configure+full+text+indexing
 
*https://wiki.duraspace.org/display/DSPACE/Configure+full+text+indexing
 
*https://wiki.duraspace.org/display/DSPACE/Re-index+DSpace
 
*https://wiki.duraspace.org/display/DSPACE/Re-index+DSpace
*https://wiki.duraspace.org/display/DSDOC4x/Legacy+methods+for+re-indexing+content
+
 
*https://wiki.duraspace.org/pages/viewpage.action?pageId=32474035
+
{{Tomcat7}}
*https://wiki.duraspace.org/display/DSDOC18/ReIndexing+Content+%28for+Browse+or+Search%29
+
 
 +
[[Category:System Administration]]
 +
[[Category:Installation]]
 +
__NOTOC__

Latest revision as of 15:04, 30 October 2019