Skip to content

As someone creating a custom metadata block, I want a script to automate the manual process of updating Solr to include the fields I added #6153

@pdurbin

Description

@pdurbin

When people create custom metadata blocks and enable them in Dataverse they must follow a manual process for updating the Solr schema. Here's a screenshot about the documented process from http://guides.dataverse.org/en/4.16/admin/metadatacustomization.html#updating-the-solr-schema

Screen Shot 2019-09-10 at 9 54 43 AM

Failure to follow this process with result in errors like this in the GUI: "Error – The metadata could not be updated. If you believe this is an error, please contact Root Support for assistance."

These errors in the GUI are reflected in Glassfish's server.log with errors like this: Caused by: org.apache.solr.client.solrj.impl.H​ttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/collection1: ERROR: [doc=dataset_72_draft] unknown field 'tag'

Errors like this were recently reported in the "error saving controlled vocabulary to dataset" thread at https://groups.google.com/d/msg/dataverse-community/lr26VTP8lhs/5JoZ-IdnBQAJ

In the example above, a new field called "tag" was added. This custom metadata block is available as "vtti-metadata-block.tsv" in https://help.hmdc.harvard.edu/Ticket/Display.html?id=280415 and was discussed at http://irclog.iq.harvard.edu/dataverse/2019-09-05#i_104712

I was able to lead @joelmarkanderson through the manual process as seen in the IRC log above but the process is tedious and not especially well documented. It would be nice to have a more automated process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions