Azure M18 - search results not returning all fields
When doing a search on some records, the "data" field/node is not returned. For instance, the following search request returns a well without the data node:
curl --location 'https://osdu-ship.msft-osdu-test.org/api/search/v2/query' \
--header 'Content-Type: application/json' \
--header 'data-partition-id: opendes' \
--header 'Authorization: Bearer ...' \
--data '{
"kind": "osdu:wks:master-data--Well:*",
"query": "id:\"opendes:master-data--Well:perforationwell\""
}'
Response:
{
"results": [
{
"createTime": "2022-12-07T15:04:14.096Z",
"kind": "osdu:wks:master-data--Well:1.0.0",
"authority": "osdu",
"namespace": "osdu:wks",
"legal": {
"legaltags": [
"opendes-public-usa-dataset-open-test-data"
],
"otherRelevantDataCountries": [
"US"
],
"status": "compliant"
},
"createUser": "preshipping@azureglobal1.onmicrosoft.com",
"source": "wks",
"acl": {
"viewers": [
"data.default.viewers@opendes.contoso.com"
],
"owners": [
"data.default.owners@opendes.contoso.com"
]
},
"id": "opendes:master-data--Well:perforationwell",
"type": "master-data--Well",
"version": 1670425452534671,
"tags": {
"normalizedKind": "osdu:wks:master-data--Well:1"
}
}
],
"aggregations": null,
"totalCount": 1
}
If you request for the storage record, the data node is present.
curl --location 'https://osdu-ship.msft-osdu-test.org/api/storage/v2/records/opendes:master-data--Well:perforationwell' \
--header 'data-partition-id: opendes' \
--header 'Authorization: Bearer ...'
Response:
{
"data": {
"DefaultVerticalMeasurementID": "RotaryTable",
"FacilityEvents": [
{
"EffectiveDateTime": "1983-10-28T00:00:00",
"FacilityEventTypeID": "opendes:reference-data--FacilityEventType:Spud:"
},
{
"EffectiveDateTime": "1983-12-19T00:00:00",
"FacilityEventTypeID": "opendes:reference-data--FacilityEventType:TDReached:"
}
],
"FacilityName": "Perforation Well",
"FacilityOperators": [
{
"FacilityOperatorOrganisationID": "opendes:master-data--Organisation:Mobil:"
}
],
"FacilityStates": [
{
"FacilityStateTypeID": "opendes:reference-data--FacilityStateType:Abandoned:"
}
],
"FacilityTypeID": "opendes:reference-data--FacilityType:Well:",
"GeoContexts": [
{
"GeoPoliticalEntityID": "opendes:master-data--GeoPoliticalEntity:Netherlands_Country:",
"GeoTypeID": "opendes:reference-data--GeoPoliticalEntityType:Country:"
},
{
"GeoPoliticalEntityID": "opendes:master-data--GeoPoliticalEntity:B14_BlockID:",
"GeoTypeID": "opendes:reference-data--GeoPoliticalEntityType:BlockID:"
}
],
"NameAliases": [
{
"AliasName": "Perforation Well",
"AliasNameTypeID": "opendes:reference-data--AliasNameType:Well:"
},
{
"AliasName": "7534",
"AliasNameTypeID": "opendes:reference-data--AliasNameType:UWI:"
}
],
"OperatingEnvironmentID": "opendes:reference-data--OperatingEnvironment:Off:",
"Source": "TNO",
"SpatialLocation": {
"Wgs84Coordinates": {
"features": [
{
"geometry": {
"coordinates": [
4.33958866,
55.27975681
],
"type": "Point"
},
"properties": {},
"type": "Feature"
}
],
"type": "FeatureCollection"
}
},
"VerticalMeasurements": [
{
"VerticalCRSID": "opendes:reference-data--CoordinateReferenceSystem:MSL:",
"VerticalMeasurement": 38.8,
"VerticalMeasurementID": "RotaryTable",
"VerticalMeasurementPathID": "opendes:reference-data--VerticalMeasurementPath:Elevation:",
"VerticalMeasurementTypeID": "opendes:reference-data--VerticalMeasurementType:RotaryTable:"
}
]
},
"meta": [
{
"kind": "Unit",
"name": "m",
"persistableReference": "{\"abcd\":{\"a\":0.0,\"b\":1.0,\"c\":1.0,\"d\":0.0},\"symbol\":\"m\",\"baseMeasurement\":{\"ancestry\":\"L\",\"type\":\"UM\"},\"type\":\"UAD\"}",
"propertyNames": [
"VerticalMeasurements[].VerticalMeasurement"
],
"unitOfMeasureID": "opendes:reference-data--UnitOfMeasure:m:"
}
],
"id": "opendes:master-data--Well:perforationwell",
"version": 1670425452534671,
"kind": "osdu:wks:master-data--Well:1.0.0",
"acl": {
"viewers": [
"data.default.viewers@opendes.contoso.com"
],
"owners": [
"data.default.owners@opendes.contoso.com"
]
},
"legal": {
"legaltags": [
"opendes-public-usa-dataset-open-test-data"
],
"otherRelevantDataCountries": [
"US"
],
"status": "compliant"
},
"createUser": "preshipping@azureglobal1.onmicrosoft.com",
"createTime": "2022-12-07T15:04:14.096Z"
}