Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
[dspace]/bin/dspace index-authority

This will iterate over every metadata under authority control and create records of them in the authority index. The metadata without an authority key will each be updated with an auto generated authority key. These will not be matched in any way with other existing records. This happens as well to the metadata with an authority key that does not already exist in the index. So on the very first run, all metadata will have their authority keys updated. The metadata with an authority key that already exist in the index will be re-indexed the same way. These records remain unchanged.

Running this script again will update the index again will keep the index clean, for . For example if an author occurs in a single item and that item is deleted the script will need to be run again to remove it from the index. When run again it will remove all records that no longer have a link to existing authors in the database.

...

As long as the metadata does not get indexed, there will be no changes. However every time any metadata of an item is modified, the metadata under authority control for that item will be reindexedre-indexed. When that happens a record will be inserted in the solr cache and the authority key will be replaced by the internal id of that record. The metadata value stays the same, but the previous authority key will be lost.