Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reflection command line changes

...

XOAI in DSpace is a separate webapp which is a complete substitute for the old "oai" webapp. XOAI doesn't query the DSpace SQL database at the time of the OAI-PMH request. Instead, it keeps the required metadata in its Solr index (currently in a separate "xoai" Solr core) and serves it from there. Furthermore, it caches the requests, so doing the same query repeatedly is very fast. The Solr index can be updated at your convenience, depending on how fresh you need the information to be. Typically, the administrator sets up a nightly cron job to update the Solr index from the SQL database.

Scheduled Tasks

...

XOAI Manager

XOAI manager it's an utility that allows one to do some administrative operations with XOAI. More properly:

Syntax

Wiki Markup
&nbsp;bin/dspace xoai <action> \[parameters\]

Actions

  • import  Imports DSpace items into XOAI Solr index
  • clean-cache  Cleans the XOAI cache
  • clear-index  Clears the XOAI Solr index

Parameters

  • -o Optimize index after indexing
  • -c Clears the Solr index before indexing (it will import all items again)
  • -v Verbose output
  • -h Shows an help text

Scheduled Tasks

Wiki Markup
In order to refresh the XOAI index, it is required to run the {{\[dspace\]/bin/dspace xoai- import&nbsp;}} command periodically. You can add the following task to your crontab:

Code Block
0 3 * * * [dspace]/bin/dspace xoai- import -i

Wiki Markup
Note that {{\[dspace\]}} should be replaced by the correct value, that is, the value defined in {{dspace.cfg}} parameter {{dspace.dir}}.

...