Multi-tenant registry OpenSearch query equivalents to single tenant registry #274
Unanswered
plawton-umd
asked this question in
Q&A
Replies: 2 comments 1 reply
-
@jordanpadams @tloubrieu-jpl @plawton-umd how important is partial backward-compatibility with Tentative design:
@jordanpadams @tloubrieu-jpl I'll need
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Blocked pending resolution of API Gateway interface discussion |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Jordan asked for examples to Open Search queries from the single tenant registries that can be translated into
examples for the (coming soon) multi-tenant registry
Environment variables used
Corrections from meeting
Examples
check that access is working
curl -u $REGUSER $OPENSEARCH_URL
count content of our registry
curl -u $REGUSER $OPENSEARCH_URL'/registry/_count?pretty=true'
count related to bundle without giving VID; for example, spitzer
curl -u $REGUSER $OPENSEARCH_URL/registry/_count -H "content-type: application/json" -d '{"query":{"simple_query_string": {"query": "urn:nasa:pds:spitzer"} } }' | json_pp
different count (note "*" at end)
curl -u $REGUSER $OPENSEARCH_URL/registry/_count -H "content-type:application/json" -d '{"query":{"simple_query_string": {"query":"urn:nasa:pds:spitzer*"} } }' | json_pp
bundle information based on LIDVID
curl -u $REGUSER $OPENSEARCH_URL'/registry/_search?q={_id:"urn:nasa:pds:spitzer::1.0"}' | json_pp
count with LIDVID
curl -u $REGUSER $OPENSEARCH_URL/registry/_count -H "content-type: application/json" -d '{"query":{"simple_query_string": {"query": "urn:nasa:pds:spitzer::1.0"} } }' | json_pp
collection information
curl -u $REGUSER $OPENSEARCH_URL'/registry/_search?q={_id:"urn:nasa:pds:spitzer:spitzer-spec-comet::1.0"}' | json_pp
LID collection count
curl -u $REGUSER $OPENSEARCH_URL/registry/_count -H "content-type: application/json" -d '{"query":{"simple_query_string": {"query": "urn:nasa:pds:spitzer:spitzer-spec-comet"} } }' | json_pp
LIDVID collection count
curl -u $REGUSER $OPENSEARCH_URL/registry/_count -H "content-type: application/json" -d '{"query":{"simple_query_string": {"query": "urn:nasa:pds:spitzer:spitzer-spec-comet::1.0"} } }' | json_pp
different collection count
curl -u $REGUSER $OPENSEARCH_URL/registry/_count -H "content-type: application/json" -d '{"query":{"simple_query_string": {"query": "urn:nasa:pds:spitzer:spitzer-spec-comet*"} } }' | json_pp
Beta Was this translation helpful? Give feedback.
All reactions