Page History
...
This particular page only describes the "Traditional Browse & Search" indexing processes. For more information on Faceted/Filtered Browse & Search, please see DSpace Discovery, in particular Discovery SOLR Solr Index Maintenance .
Creating the Browse & Search Indexes
...
Warning |
---|
If you are using the SOLR Solr Browse DAOs it is not required to run this script as the data are stored in the SOLR Solr search core that need to be recreated using the Discovery maintenance script |
...
Warning | ||
---|---|---|
| ||
Because this command actually deletes existing Browse Index tables, you must stop Tomcat (or your Servlet Container of choice) before executing |
Warning | ||
---|---|---|
| ||
In many Oracle based DSpace installations, index-init often malfunctions because of Oracle specific permissions. It is therefore advised to stick to index-update instead |
By running [dspace]/bin/dspace index-init
you will completely regenerate your indexes, tearing down all existing tables and reconstructing with the new configuration.
Code Block |
---|
[dspace]/bin/dspace index-init |
Updating the Indexes
By running [dspace]/bin/dspace index-update
you will reindex your full browse & search indexes without modifying the DSpace table structure. (This should be your default approach if indexing, for example, via a cron job periodically). Because it does not "tear down" the existing tables, this command can be run while DSpace (and Tomcat or similar) is still running.
...
Warning |
---|
If you are using the SOLR Solr Browse DAOs you don't need to run this script as the data are stored in the SOLR Solr search core. You need to recreate the indexes using the Discovery maintenance script |
Destroy and Rebuild Browse Tables
Warning |
---|
This is really not recommended unless you know what you are doing. |
You can destroy and rebuild the database, but do not do the indexing. Output the SQL to do this to the screen and a file, as well as executing it against the database, while being verbose. WARNING: This is not really recommended unless you know what you are doing.
At the CLI screen:
Code Block |
---|
[dspace]/bin/dspace index \-r \-t \-p \-v \-x \-o myfile.sql |
Indexing Customization
...
Because Browse Indexes are stored in database tables, remember to run index-init
after adding any new definitions in the dspace.cfg
to have the indexes created and the data indexed.
Info |
---|
Since DSpace 3.0 a SOLR Solr DAOs implementation of the browse engine is provided. If you are using the SOLR Solr DAOs you don't need to run the script described in this page but instead use the Discovery maintenance script. Browse indexing in SOLR Solr is done within the Search Indexing process. |
...
Search Index Customization
...