Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-997

Discovery errors out if an item has multiple 'dc.date.accessioned' values

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.0
    • Fix Version/s: 1.8.0
    • Component/s: Discovery, Solr
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      5
    • Documentation Status:
      Not Required

      Description

      Here's how you can replicate this issue.

      • Modify a single item such that it has two "dc.date.accessioned" values.
      • Restart Tomcat/Solr (may not even be necessary)

      In the Tomcat logs you will see errors like:

      Aug 17, 2011 12:54:18 PM org.apache.solr.common.SolrException log
      SEVERE: org.apache.solr.common.SolrException: can not sort on multivalued field: dc.date.accessioned_dt
      at org.apache.solr.schema.SchemaField.checkSortability(SchemaField.java:154)

      This error seems to cause the Item to no longer be available from Discovery or the UI in general.

      Although most items in DSpace should only ever have one 'dc.date.accessioned', it still is not impossible to have multiple values. If you import any item which already has an existing 'dc.date.accessioned' value (for whatever reason), DSpace will keep that value & also add a new one representing the new DSpace Accession Date (see the InstallItem class).

      In general, if possible, it'd be best for Discovery to not assume a single value for any 'dc.date' fields.

      This same issue also occurs if you manually add a second 'dc.date.issued' value. You'll see similar errors stating "can not sort on multivalued field: dc.date.issued.year".

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tdonohue Tim Donohue
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: