While performing the search on Well Datatype, it is noticed that the data field is not being displayed in the response.
Using Search API when the search is performed on the well data type, the data field is not being returned in the response. But when the same record is retrieved using the Storage API, one sees the data field in the response
Search request
curl --location 'https://preship.gcp.gnrg-osdu.projects.epam.com/api/search/v2/query' \
--header 'Authorization: Bearer ya29.a0AWY7Ckl3BW...A0167' \
--header 'data-partition-id: odesprod' \
--header 'Content-Type: application/json' \
--data '{
"kind": "osdu:wks:master-data--Well:1.*",
"limit": 30,
"query": "id: \"odesprod:master-data--Well:Well_CL_153\""
}'
Response of search request
{
"results": [
{
"kind": "osdu:wks:master-data--Well:1.0.0",
"source": "wks",
"acl": {
"viewers": [
"data.default.viewers@odesprod.osdu-gcp.go3-nrg.projects.epam.com"
],
"owners": [
"data.default.owners@odesprod.osdu-gcp.go3-nrg.projects.epam.com"
]
},
"type": "master-data--Well",
"version": 1687768816753730,
"tags": {
"normalizedKind": "osdu:wks:master-data--Well:1"
},
"modifyUser": "osdu-sa-airflow-composer@osdu-service-prod.iam.gserviceaccount.com",
"modifyTime": "2023-06-26T08:40:18.223Z",
"createTime": "2022-09-08T16:22:44.732Z",
"authority": "osdu",
"namespace": "osdu:wks",
"legal": {
"legaltags": [
"odesprod-demo-legaltag"
],
"otherRelevantDataCountries": [
"US"
],
"status": "compliant"
},
"createUser": "osdu-sa-airflow-composer@osdu-service-prod.iam.gserviceaccount.com",
"id": "odesprod:master-data--Well:Well_CL_153" <<<<<<===========================
}
],
"aggregations": null,
"totalCount": 1
}
Retrieve same record using storage API
curl --location 'https://preship.gcp.gnrg-osdu.projects.epam.com/api/storage/v2/records/odesprod:master-data--Well:Well_CL_153' \
--header 'data-partition-id: odesprod' \
--header 'Authorization: Bearer ya29.a0AWY7Ckl3BW...A0167'
Response from Storage record retrieval
{
"data": { <<<<<<===========================
"FacilityID": "ACA-153",
"FacilityOperators": [
{
"FacilityOperatorOrganisationID": "odesprod:master-data--Organisation:ROVD:"
}
],
"FacilityTypeID": "odesprod:reference-data--FacilityType:Well:",
"GeoContexts": [
{
"GeoPoliticalEntityID": "odesprod:master-data--GeoPoliticalEntity:Netherlands_Country:",
"GeoTypeID": "odesprod:reference-data--GeoPoliticalEntityType:Country:"
},
{
"GeoPoliticalEntityID": "odesprod:master-data--GeoPoliticalEntity:Limburg_Province:",
"GeoTypeID": "odesprod:reference-data--GeoPoliticalEntityType:State%2FProvinceID:"
},
{
"GeoPoliticalEntityID": "odesprod:master-data--GeoPoliticalEntity:L_Quadrant:",
"GeoTypeID": "odesprod:reference-data--GeoPoliticalEntityType:Quadrant:"
}
],
"NameAliases": [
{
"AliasName": "ACA-153",
"AliasNameTypeID": "odesprod:reference-data--AliasNameType:WELL_NAME:"
},
{
"AliasName": "153",
"AliasNameTypeID": "odesprod:reference-data--AliasNameType:UWI:"
}
],
"Source": "TNO",
"SpatialLocation": {
"Wgs84Coordinates": {
"features": [
{
"geometry": {
"coordinates": [
5.98136045,
51.43503877
],
"type": "Point"
},
"properties": {},
"type": "Feature"
}
],
"type": "FeatureCollection"
}
}
},
"modifyUser": "osdu-sa-airflow-composer@osdu-service-prod.iam.gserviceaccount.com",
"modifyTime": "2023-06-26T08:40:18.223Z",
"id": "odesprod:master-data--Well:Well_CL_153", <<<<<<===========================
"version": 1687768816753730,
"kind": "osdu:wks:master-data--Well:1.0.0",
"acl": {
"viewers": [
"data.default.viewers@odesprod.osdu-gcp.go3-nrg.projects.epam.com"
],
"owners": [
"data.default.owners@odesprod.osdu-gcp.go3-nrg.projects.epam.com"
]
},
"legal": {
"legaltags": [
"odesprod-demo-legaltag"
],
"otherRelevantDataCountries": [
"US"
],
"status": "compliant"
},
"createUser": "osdu-sa-airflow-composer@osdu-service-prod.iam.gserviceaccount.com",
"createTime": "2022-09-08T16:22:44.732Z"
}