Uploaded image for project: 'Islandora'
  1. Islandora
  2. ISLANDORA-1977

Islandora Solr Metadata shouldn't care if fields don't exist in Solr

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Solr Metadata
    • Labels:
      None

      Description

      Islandora Solr Metadata pops an error if you try to add a field that currently isn't in Solr (as found by the autocomplete). This isn't really a convention that's followed elsewhere (other autocompletes let you add them just fine), and it's not like fields that don't exist are implicitly invalid, especially since they can be imported through Features without issue, and the metadata display itself doesn't really mind that the fields don't exist (they just don't display).

      It kind of makes site-building difficult, since at the point you initially set up the Solr configurations, your site probably doesn't have a complete set of data, so some fields are probably missing in Luke that you intend to have there later. It seems not ideal to have to finalize your XML forms and ingest some data just to complete your Solr Metadata configs. I've been just commenting it out when building metadata configs.

      Recommending we simply axe the validation here: https://github.com/Islandora/islandora_solr_metadata/blob/1557d4c0b35ca2e88f5e9d5da32cc057224ebb15/includes/config.inc#L261-L263

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              daitken Daniel Aitken
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: