Boolean value in storage API parsed as String (Text) field in Search | M22

We have noticed that there is value type mismatched in query API response compared to Storge API with latest updated schema WellboreTrajectory:1.3.0 version M22 release.

  • The record in kind WellboreTrajectory 1.3.0 from Storage API which is fetching the correct attribute as boolean was indexed as string in Query API response.

  • Storage API response :

"data": {

    "ActiveIndicator": false,
  • Search API response of for same record :

      "ActiveIndicator": "false",

When we look at the schemas in M22 for WellboreTrajectory versions “1.2.0” and “1.3.0” both schemas are identical. The same occurs when I look at the way that Elasticsearch parses the data for processing. There are no discrepancies.

Schema “osdu:wks:work-product-component--WellboreTrajectory:1.2.0”:

                    "ActiveIndicator": {
                        "description": "A flag indicating if the survey is currently active or valid within his lifecycle stage, not necessarily the definitive survey.",
                        "type": "boolean",
                        "title": "Active Survey Indicator",
                        "example": false
                    },

Elasticsearch index: osdu-wks-work-product-component--wellboretrajectory-1.2.0

        "ActiveIndicator": {
          "type": "text",
          "fields": {
            "keyword": {
              "type": "keyword",
              "null_value": "null",
              "ignore_above": 256
            },
            "keywordLower": {
              "type": "keyword",
              "null_value": "null",
              "ignore_above": 256,
              "normalizer": "lowercase"
            }
          },
          "copy_to": [
            "bagOfWords"
          ]
        }

Schema “osdu:wks:work-product-component--WellboreTrajectory:1.3.0”:

                    "ActiveIndicator": {
                        "description": "A flag indicating if the survey is currently active or valid within his lifecycle stage, not necessarily the definitive survey.",
                        "type": "boolean",
                        "title": "Active Survey Indicator",
                        "example": false
                    },

Elasticsearch index: osdu-wks-work-product-component--wellboretrajectory-1.3.0

        "ActiveIndicator": {
          "type": "text",
          "fields": {
            "keyword": {
              "type": "keyword",
              "null_value": "null",
              "ignore_above": 256
            },
            "keywordLower": {
              "type": "keyword",
              "null_value": "null",
              "ignore_above": 256,
              "normalizer": "lowercase"
            }
          },
          "copy_to": [
            "bagOfWords"
          ]
        }
Edited by Surendra Chatala