Azure - Search Results different from expected
Hello,
I noticed the Search results are back but slow and we have ticket #525 (closed) to check this. But I noticed that the search result that I'm getting is different from what I used to get and I want. Not sure if the code changed but how I can get what I'm expecting? 2 examples are:
Search for Unit Conversion
M17 result for Azure
POST https://{{SEARCH_HOST}}/query
Body
{
"kind": "{{authority}}:wks:master-data--SeismicAcquisitionSurvey:1.0.0",
"query": "id: \"{{data-partition-id}}:master-data--SeismicAcquisitionSurvey:ST0202R08-{{randomId}}\""
}
Response
{
"results": [
{
"data": {
"Operator": null,
"SourceArrayCount": 2,
"ProjectName": null,
"ShotpointIncrementDistance": 7.62,
"VirtualProperties.DefaultLocation.QuantitativeAccuracyBandID": null,
"ResourceLifecycleStatus": null,
"ProjectID": null,
"CableCount": 4,
"CableLength": 1828.8000000000002,
"ResourceCurationStatus": null,
"TechnicalAssuranceID": null,
"VirtualProperties.DefaultLocation.SpatialGeometryTypeID": null,
"Source": null,
"SourceArraySeparationDistance": 100.0,
"VirtualProperties.DefaultName": null,
"CableSpacingDistance": 30.48,
"VirtualProperties.DefaultLocation.CoordinateQualityCheckPerformedBy": null,
"VersionCreationReason": null,
"ResourceSecurityClassification": null,
"SpatialLocation.SpatialParameterTypeID": null,
"ExistenceKind": null,
"SpatialLocation.CoordinateQualityCheckPerformedBy": null,
"VesselNames": [
"GECO ANGLER"
],
"MaxOffsetDistance": 1828.8000000000002,
"TechnicalAssuranceTypeID": null,
"Purpose": "Acquisition for Volve",
"RecordLength": 10.200000000000001,
"FoldCount": 120,
"SpatialLocation.QualitativeSpatialAccuracyTypeID": null,
"SpatialLocation.SpatialGeometryTypeID": null,
"OperatingEnvironmentID": "opendes:reference-data--OperatingEnvironment:Offshore:",
"VirtualProperties.DefaultLocation.SpatialParameterTypeID": null,
"ResourceHomeRegionID": null,
"SeismicGeometryTypeID": "opendes:reference-data--SeismicGeometryType:3D:",
"VirtualProperties.DefaultLocation.QualitativeSpatialAccuracyTypeID": null,
"SampleInterval": 4.0,
"EnergySourceTypeID": "opendes:reference-data--SeismicEnergySourceType:Airgun:",
"SpatialLocation.QuantitativeAccuracyBandID": null
},
"kind": "osdu:wks:master-data--SeismicAcquisitionSurvey:1.0.0",
"source": "wks",
"acl": {
"viewers": [
"data.default.viewers@opendes.contoso.com"
],
"owners": [
"data.default.owners@opendes.contoso.com"
]
},
"type": "master-data--SeismicAcquisitionSurvey",
"version": 1682448201670318,
"tags": {
"normalizedKind": "osdu:wks:master-data--SeismicAcquisitionSurvey:1"
},
"modifyUser": "60c4b736-2aa4-4889-88a0-d50503d63de7",
"modifyTime": "2023-04-25T18:43:21.791Z",
"createTime": "2023-04-25T18:43:02.479Z",
"authority": "osdu",
"namespace": "osdu:wks",
"legal": {
"legaltags": [
"opendes-R3FullManifest-Legal-Tag-Test1917210"
],
"otherRelevantDataCountries": [
"US"
],
"status": "compliant"
},
"createUser": "60c4b736-2aa4-4889-88a0-d50503d63de7",
"id": "opendes:master-data--SeismicAcquisitionSurvey:ST0202R08-613522"
}
],
"aggregations": null,
"totalCount": 1
}
M18 result I'm getting
POST https://{{SEARCH_HOST}}/query
curl --location 'https://osdu-ship.msft-osdu-test.org/api/search/v2/query' \
Body
{
"kind": "{{authority}}:wks:master-data--SeismicAcquisitionSurvey:1.0.0",
"query": "id: \"{{data-partition-id}}:master-data--SeismicAcquisitionSurvey:ST0202R08_UC_JFA_Jun152023\""
}
Result
{
"results": [
{
"kind": "osdu:wks:master-data--SeismicAcquisitionSurvey:1.0.0",
"source": "wks",
"acl": {
"viewers": [
"data.default.viewers@opendes.contoso.com"
],
"owners": [
"data.default.owners@opendes.contoso.com"
]
},
"type": "master-data--SeismicAcquisitionSurvey",
"version": 1686905173380617,
"tags": {
"normalizedKind": "osdu:wks:master-data--SeismicAcquisitionSurvey:1"
},
"modifyUser": "preshipping@azureglobal1.onmicrosoft.com",
"modifyTime": "2023-06-16T08:46:13.991Z",
"createTime": "2023-06-15T13:18:03.831Z",
"authority": "osdu",
"namespace": "osdu:wks",
"legal": {
"legaltags": [
"opendes-R3FullManifest-Legal-Tag-Test6917654"
],
"otherRelevantDataCountries": [
"US"
],
"status": "compliant"
},
"createUser": "preshipping@azureglobal1.onmicrosoft.com",
"id": "opendes:master-data--SeismicAcquisitionSurvey:ST0202R08_UC_JFA_Jun152023"
}
],
"aggregations": null,
"totalCount": 1
}
Search for Storage CRUD
M17 result for Azure
POST
Body
{
"kind": "osdu:wks:reference-data--FacilityType:1.0.0",
"query": "id: \"opendes:reference-data--FacilityType:Well-590981\" "
}
Response
{
"results": [
{
"data": {
"AttributionPublication": null,
"InactiveIndicator": null,
"Description": null,
"ResourceLifecycleStatus": null,
"ResourceCurationStatus": null,
"TechnicalAssuranceID": null,
"Code": "Well",
"Source": "Workbook Published/FacilityTypeType.1.0.0.xlsx; commit SHA 0b4db59a.",
"Name": "Revised name 25-April",
"AttributionAuthority": null,
"ResourceHomeRegionID": null,
"VirtualProperties.DefaultName": "Revised name 25-April",
"AttributionRevision": null,
"ResourceSecurityClassification": null,
"ID": "Well",
"ExistenceKind": null
},
"kind": "osdu:wks:reference-data--FacilityType:1.0.0",
"source": "wks",
"acl": {
"viewers": [
"data.default.viewers@opendes.contoso.com"
],
"owners": [
"data.default.owners@opendes.contoso.com"
]
},
"type": "reference-data--FacilityType",
"version": 1682451796412167,
"tags": {
"normalizedKind": "osdu:wks:reference-data--FacilityType:1"
},
"modifyUser": "preshipping@azureglobal1.onmicrosoft.com",
"modifyTime": "2023-04-25T19:43:17.130Z",
"createTime": "2023-04-22T18:54:59.045Z",
"authority": "osdu",
"namespace": "osdu:wks",
"legal": {
"legaltags": [
"opendes-R3FullManifest-Legal-Tag-Test7963909"
],
"otherRelevantDataCountries": [
"US"
],
"status": "compliant"
},
"createUser": "60c4b736-2aa4-4889-88a0-d50503d63de7",
"id": "opendes:reference-data--FacilityType:Well-590981"
}
],
"aggregations": null,
"totalCount": 1
}
M18 result I'm getting
POST https://{{SEARCH_HOST}}/query
curl --location 'https://osdu-ship.msft-osdu-test.org/api/search/v2/query' \
Body
{
"kind": "osdu:wks:master-data--Well:1.0.0",
"query": "id: \"opendes:master-data--Well:999555370888\" "
}
Result
{
"results": [
{
"kind": "osdu:wks:master-data--Well:1.0.0",
"source": "wks",
"acl": {
"viewers": [
"data.default.viewers@opendes.contoso.com"
],
"owners": [
"data.default.owners@opendes.contoso.com"
]
},
"type": "master-data--Well",
"version": 1686922327052672,
"tags": {
"normalizedKind": "osdu:wks:master-data--Well:1"
},
"modifyUser": "preshipping@azureglobal1.onmicrosoft.com",
"modifyTime": "2023-06-16T13:32:07.841Z",
"createTime": "2023-06-16T13:30:24.988Z",
"authority": "osdu",
"namespace": "osdu:wks",
"legal": {
"legaltags": [
"opendes-Test-Legal-Tag-5247622"
],
"otherRelevantDataCountries": [
"US"
],
"status": "compliant"
},
"createUser": "preshipping@azureglobal1.onmicrosoft.com",
"id": "opendes:master-data--Well:999555370888"
}
],
"aggregations": null,
"totalCount": 1
}
Regards,
Juliana