Difference between revisions of "SUNScholar/Indexes/Rebuild"

From Libopedia
Jump to navigation Jump to search
 
(39 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<center>
 
<center>
  '''[[SUNScholar/Browse Indexes|Back to non-SOLR Search and Browse Indexes]]'''
+
'''[[SUNScholar/Install DSpace/S11|Back to After Installation Tasks]]'''
 
+
  '''[[SUNScholar/Browse Indexes|Back to Browse Indexes]]'''
  '''[[SUNScholar/SOLR Discovery|Back to SOLR Discovery Search and Browse Indexes]]'''
+
  '''[[SUNScholar/Search_Indexes|Back to Search Indexes]]'''
 
</center>
 
</center>
  
==[[SUNScholar/Rebuild_DSpace|Rebuild DSpace]]==
+
==Introduction==
Click on the heading above.
+
After modifying any index configuration and <font color="red">'''then rebuilding your webapps'''</font>, you will need to rebuild your indexes.
 
 
==Rationale==
 
After applying customisations, you need to rebuild the indexes. This is required after each change in the indexes configuration.
 
 
 
==Procedure==
 
Login to your server:
 
http://wiki.lib.sun.ac.za/index.php/SUNScholar/Prepare_Ubuntu/S01
 
 
 
Create a scripts folder.
 
mkdir /home/dspace/scripts
 
Create the script.
 
nano /home/dspace/scripts/build-indexes
 
 
 
Copy and paste the following.
 
<pre>
 
#!/bin/bash
 
 
 
echo "Building SOLR discovery search and browse indexes... Please wait"
 
/home/dspace/bin/dspace update-discovery-index -f
 
 
 
## This is only required if you use the old browse indexes ##
 
## Since DSpace version 4.2, discovery is default ##
 
## Uncomment the lines below with a single hash to enable, if needed ##
 
#echo "Building non-SOLR search and browse indexes... Please wait"
 
#sudo service tomcat6 stop
 
#sleep 5
 
#/home/dspace/bin/dspace index-init
 
#sudo service tomcat6 start
 
</pre>
 
 
 
{{NANO}}
 
  
Make the script executable.
+
This script allows to rebuild indexes at any time later.
chmod 0755 /home/dspace/scripts/build-indexes
 
  
Now you can re-build your indexes '''WHEN NEEDED''' by simply typing;
+
==Requirements==
/home/dspace/scripts/build-indexes
+
<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]]===
  
==Notes==
 
This comment on a DSpace mailing list may help:
 
<pre>
 
-b destroy the index and rebuild. You will see 0 results if you look at dspace at this moment, and items will be agregated to a 0 lenght index
 
-f keep the index but reindex all items, so you never see the 0 results, and data will be overwriten
 
</pre>
 
 
==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