In IBM environment Search to get all records of a particular entity type e.g. SeismicBinGrid is not working.
Search to get all records of a particular entity type e.g. SeismicBinGrid, FileCollection.SEGY is not working. At the same time, it is working for entity type SeismicTraceData.
More concerned about the error return with code 500 server error. If one gets no data found then it would be okay but 500 is definetly not good
curl --location --request POST 'https://osdu-cpd-osdu.odi-osdu-og-fa7661852f2ab29a6be32f560b2f5573-0000.us-south.containers.appdomain.cloud/osdu-search/api/search/v2/query'
--header 'data-partition-id: opendes'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI...clvc0Rwb8Lw'
--data-raw '{
"kind": "opendes:wks:work-product-component--SeismicBinGrid:1.0.0",
"query": "*",
"aggregateBy": "kind",
"limit": 10
}'
Response: 500 Internal Server Errpr
{
"code": 500,
"reason": "Server error.",
"message": "An unknown error has occurred."
}
It works for a similar query when the entity type is SeismicTraceData
curl --location --request POST 'https://osdu-cpd-osdu.odi-osdu-og-fa7661852f2ab29a6be32f560b2f5573-0000.us-south.containers.appdomain.cloud/osdu-search/api/search/v2/query'
--header 'data-partition-id: opendes'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI...clvc0Rwb8Lw'
--data-raw '{
"kind": "opendes:wks:work-product-component--SeismicTraceData:1.0.0",
"query": "*",
"aggregateBy": "kind",
"limit": 10
}'
Response: 200 OK
{
"results": [
{
"data": {
....
}
],
"aggregations": [
{
"key": "opendes:wks:work-product-component--SeismicTraceData:1.0.0",
"count": 2
}
],
"totalCount": 2
}
@ChrisZhang @ashams_s @anujgupta