Augmented Index - Use Case 2 (Country Names) not working in M22 Preship Environment
I was testing out the augmented index feature on the M22 Preship environment. I was trying to implement the use cases documented in this tutorial. Use cases 1 and 5 worked for me. Use case 2 did not, as the field CountryNames
wasn't coming out of search after reindexing.
I also tried this on osdu:wks:master-data--Wellbore:1.0.0
but replaced the item in RelatedConditionMatches
with ^[\\w\\-\\.]+:reference-data--GeoPoliticalEntityType:Province:$
and the Name to ProvinceNames
, but the custom ProvinceNames
field is not appearing.
Please see below the reference data I used:
[
{
"acl": {
"owners": [
"{{New_OwnerDataGroup}}@{{data-partition-id}}{{domain}}"
],
"viewers": [
"{{New_ViewerDataGroup}}@{{data-partition-id}}{{domain}}"
]
},
"legal": {
"legaltags": [
"{{LegalTagNameExists}}"
],
"otherRelevantDataCountries": [
"US"
],
"status": "compliant"
},
"meta": [],
"data": {
"Code": "osdu:wks:master-data--Wellbore:1.",
"Configurations": [
{
"Name": "ProvinceNames",
"Policy": "ExtractAllMatches",
"Paths": [
{
"RelatedObjectsSpec": {
"RelatedObjectID": "data.GeoContexts[].GeoPoliticalEntityID",
"RelatedObjectKind": "osdu:wks:master-data--GeoPoliticalEntity:1.",
"RelatedConditionMatches": [
"^[\\w\\-\\.]+:reference-data--GeoPoliticalEntityType:Province:$"
],
"RelatedConditionProperty": "data.GeoContexts[].GeoTypeID"
},
"ValueExtraction": {
"ValuePath": "data.GeoPoliticalEntityName"
}
}
],
"UseCase": "As a user I want to find objects by a province name."
}
]
},
"id": "{{data-partition-id}}:reference-data--IndexPropertyPathConfiguration:wks:master-data--Wellbore:1.",
"kind": "osdu:wks:reference-data--IndexPropertyPathConfiguration:1.0.0",
"version": 0
}
]