Operation Overview
The high level architecture of PDS Registry and its main components is shown below.

Common Operations
Extract PDS4 Product Metadata
Run Harvest tool to crawl PDS4 products and extract metadata. The metadata is stored in an "intermediate" XML file which can be loaded into Solr by Registry Manager or Solr post tool.
In addition to some basic information, such as lid, vid, product class, internal references, file name and size, you can configure additional fields to export. Optionally the whole PDS product labels can be stored as BLOBs (Binary Large OBjects).
See Harvest Documentation for more information.
Create or Delete Registry Collection
You must create registry collection in Solr, before loading data generated by Harvest tool. See Registry Installation and Registry Manager for more information.
You may want to add more fields to default schema or change default Solr configuration. See Registry Collection Configuration and Solr Documentation for more information.
Load Metadata into Solr
Intermediate XML file generated by Harvest, can be loaded into Solr by Registry Manager or standard Solr tools, such as Solr post tool.
The following example shows how to load data with Registry Manager.
registry-manager load-data -filePath /home/pds/harvest/solr/solr-docs.xml
View / Search Metadata
Solr Admin UI
To search registry collection in Solr Admin UI open the following URL in a browser http://localhost:8983/solr, select registry collection from a dropdown and then Query menu item.

Solr Search API
You can find more information about Solr Search API at Solr web site.
To call old API, either open the following URL in a browser or use curl command:
curl "http://localhost:8983/solr/registry/query?q=*:*"
curl "http://localhost:8983/solr/registry/query" -d '{ "query" : "*:*" }'
Delete Metadata from Solr
You can use Registry Manager tool to delete metadata by lidvid, lid, package id (Harvest run id), or to delete all data. Few examples are shown below.
registry-manager delete-data -lidvid urn:nasa:pds:context:target:asteroid.4_vesta::1.1 registry-manager delete-data -lid urn:nasa:pds:context:target:asteroid.4_vesta registry-manager delete-data -packageId 8d8ae96d-044e-473d-a278-62635b1c5977 registry-manager delete-data -all
You can also delete data from Solr by calling Solr update API
$ curl 'http://localhost:8983/solr/registry/update/' --data-binary "<delete><query>*:*</query></delete>"
Reingest Data to Registry
Registry collection uses lidvid as a primary key. If you load data multiple times, old documents will be replaced by new documents with the same lidvid. To avoid any orphan records, you may want to delete old documents first.
Export a File from Registry BLOB
If PDS product label BLOBs (Binary Large OBjects) were generated by Harvest, they can be exported by Registry Manager tool as shown below.
registry-manager export-file -lidvid urn:nasa:pds:context:target:asteroid.4_vesta::1.1 -filePath /tmp/4_vesta.xml