Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Remove optimization note

...

Command used:

[dspace]/bin/dspace index-discovery [-bcfh[ir <object_handle>]]

Java class:

org.dspace.discovery.IndexClient

Arguments (short and long forms):

Description


called without any options, will update/clean an existing index

-b

(re)build index, wiping out current one if it exists

-c

clean existing index removing any documents that no longer exist in the db

-f

if updating existing index, force each handle to be reindexed even if up to date

-h

print this help message

-i <object_handle>

add or update an Item, Collection or Community in index based on its handle.

-r <object_handle>

remove an Item, Collection or Community from index based on its handle

-srebuild the spellchecker, can be combined with -b and -f.

Routine Discovery Solr Index Maintenance

It is recommended to run maintenance on the Discovery Solr index occasionally (from crontab or your system's scheduler), to prevent your servlet container from running out of memory:

[dspace]/bin/dspace index-discovery -o

(Since Solr 4, the underlying optimize operation has been discouraged as mostly unnecessary and renamed. See https://issues.apache.org/jira/browse/SOLR-3141).

Advanced Solr Configuration

...