NASA-PDS / registry-mgr

Standalone Registry Manager application responsible for managing the PDS Registry (https://github.com/NASA-PDS/registry) schemas and indexes.
https://nasa-pds.github.io/registry
Other
0 stars 2 forks source link

As a registry user, I want to search on ref_lid_* from the registry metadata #50

Closed al-niessner closed 1 year ago

al-niessner commented 1 year ago

💪 Motivation

To trace up and down the hierarchy (bundle, collection, and product) as well as among peers (document, investigation, instrument, and target) need these items to be indexed in the registry.

Related to: NASA-PDS/registry-api#150 and NASA-PDS/registry#81

⚖️ Acceptance Criteria

Can search on this criteria with the test data and have success:

{
  "from": 0,
  "size": 10,
  "query": {
    "bool": {
      "must": [
        {
          "term": {
            "ref_lid_collection": {
              "value": "urn:nasa:pds:insight_rad:data_derived",
              "boost": 1
            }
          }
        }
      ],
      "adjust_pure_negative": true,
      "boost": 1
    }
  },
  "_source": {
    "includes": [
        "lid", "ref_lid_collection"
    ],
    "excludes": [
      "ops:Label_File_Info/ops:blob",
      "ops:Label_File_Info/ops:json_blob"
    ]
  }
}

⚙️ Engineering Details

jordanpadams commented 1 year ago

fixed per #51