Update field mapping for 'rights.description' to index values as keyw… #310
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose and background context
Update OpenSearch field mapping for
rights.description
to index values as keywords to support"Access to file" filter. This work is required as a result of updates to the TIMDEX data model.
How can a reviewer manually see the effects of these changes?
Prerequisite step(s)
transform
command intransmogrifier
locally to create a JSON file with TIMDEX records that included the updates to theMITAardvark.rights
field to support access filter.transmogrifier/output/output.json
totimdex-index-manager/output.json
.timdex-index-manager/README.md
to run OpenSearch and OpenSearch Dashboards in a local docker container and bulk-indextimdex-index-manager/output.json
into the OpenSearch instance.Note: When running this locally, I had to temporarily update the version of the Docker images in compose.yaml to
2.11.1
. Thelatest
will pull version 2.12, which now requires an env var called OPENSEARCH_INITIAL_ADMIN_PASSWORD to be set.Now, the exciting bit! 🥳
The output shows that we are able to aggregate on
Rights.description.keyword
after filtering to `Rights.kind = "Access to files". Hooray! ✅Note: If you were to run the query above using
rights.description
, excluding.keyword
, Dev Tools will throw the following error:Includes new or updated dependencies?
NO
Changes expectations for external applications?
NO
What are the relevant tickets?
https://mitlibraries.atlassian.net/browse/GDT-138
Developer
Code Reviewer(s)