Cannot add a value for field [stepContexts.pageContext.metas] since one of the intermediate objects is mapped as a nested object: [stepContexts]

     "stepContexts" : {
        "type" : "nested",
        "properties" : {
          "additionalContext" : {
            "type" : "text",
            "analyzer" : "custom_analyzer"
          },
          "branchId" : {
            "type" : "float"
          },
          "caption" : {
            "type" : "text",
            "analyzer" : "standard"
          },
          "pageContext" : {
            "type" : "nested",
            "properties" : {
              "cookies" : {
                "type" : "text",
                "analyzer" : "custom_analyzer"
              },
              "links" : {
                "type" : "nested",
                "properties" : {
                  "Links" : {
                    "type" : "text",
                    "analyzer" : "standard"
                  }
                }
              },
              "localStorageData" : {
                "type" : "nested",
                "properties" : {
                  "data" : {
                    "type" : "text",
                    "analyzer" : "keyword"
                  },
                  "key" : {
                    "type" : "text",
                    "analyzer" : "standard"
                  }
                }
              },
              "pageSize" : {
                "type" : "float"
              },
              "scripts" : {
                "type" : "nested",
                "properties" : {
                  "Scripts" : {
                    "type" : "text",
                    "analyzer" : "standard"
                  }
                }
              },
              "title" : {
                "type" : "text",
                "analyzer" : "standard"
              },
              "treeCount" : {
                "type" : "float"
              },
              "url" : {
                "type" : "text",
                "analyzer" : "keyword"
              },
              "version" : {
                "type" : "text",
                "analyzer" : "standard"
              }
            }
          },
          "processName" : {
            "type" : "text",
            "analyzer" : "custom_analyzer"
          },
          "stepId" : {
            "type" : "text",
            "analyzer" : "standard"
          },
          "stepNumber" : {
            "type" : "float"
          },
          "url" : {
            "type" : "text",
            "analyzer" : "keyword"
          }
        }
      },

I am trying to data in the form of string array for "links", "metas", "scripts" properties using NEST 6.0.0.0 library in .NET core with Elasticsearch version of 6.8 with the method "IndexAsync" but I keep getting this error. It seems to have a problem with mapping so I deleted the index and recreated it but It thrown the exception. Please suggest how to fix it if there is any solution for it. I inserted the data from kibana query and it works fine but with NEST its not working.

Thanks

What is your action? Update documents or create?
I'm not familiar with NET but the error messages seems against updates.

What you did on kibana and NEST was completely the same?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.