Link Search Menu Expand Document

Publishing Metadata in Solr

How to publish metadata records in Solr for GeoBlacklight integration


Table of contents

  1. Add metadata records to Solr
  2. View Solr metadata within GeoBlacklight

Add metadata records to Solr

Metadata for GeoBlacklight instances is stored and indexed in Solr. The Solr application identifies each metadata record as a “document.” The process of adding documents to Solr is called “indexing.”

Option A: Manually indexing

If you have access to your Solr Dashboard panel, you can add records manually by pasting them into the Documents pane.

Option B: Indexing via scripts

It is often more practical to use a process for batch adding, updating, and deleting the records. Most of the available processes are in the form of command-line scripts. See Scripts and Tools for examples.

View Solr metadata within GeoBlacklight

The raw metadata files can be viewed by appending terms to the end of an item’s show page URL.

.xml

.json

  • GeoBlacklight until version 1.9: produces a full metadata file for the item as a flat JSON document.
  • GeoBlacklight 2.0+: produces a nested JSON document of the metadata that appears on the item page. This document can be harvested by the JSON:API protocol.

/raw

  • GeoBlacklight until version 1.9: not available.
  • GeoBlacklight 2.0+: displays the full metadata file for the item as a flat JSON document.