Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Discovery SOLR Index Maintenance

...

  • metadataSortField (mandatory): The metadata field to sort on to retrieve the recent submissions
  • max (mandatory): The maximum number of results to be displayed as recent submissions
  • type (optional): the type of the search filter it can either be date or text, if none is defined text will be used.

...

Discovery SOLR Index Maintenance

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="8d5931a19f237ad3-de3b250b-414341cd-ae24b7c7-f7ed538bc2253c2f69ef304b"><ac:plain-text-body><![CDATA[

Command used:

[dspace]/bin/dspace update-discovery-index -o[-cbhf[r \<item handle\>]]

]]></ac:plain-text-body></ac:structured-macro>

Java class:

org.dspace.discovery.SolrServiceImpl (or any other custom class that inherits from org.dspace.discovery.IndexingService) IndexClient

Arguments (short and long forms):

Description

 

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

-o

Run maintenance on the Discovery SOLR index. Recommended to run daily, to prevent your servlet container from running out of memory

Notes:

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 uptodate

-h

print this help message

-o

optimize search core

-r \<item handle\>

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

Routine Discovery SOLR Index Maintenance

It is strongly recommended to run maintenance on the Discovery SOLR index The usage of this this option is strongly recommended, you should run this script daily (from crontab or your system's scheduler), to prevent your servlet container from running out of memory.:

Wiki Markup
{{\[dspace\]/bin/dspace update-discovery-index \-o}}

Advanced SOLR Configuration

...