0
{
    "mappings" : {
      "date_detection" : false,
      "properties" : {
        "@class" : {
          "type" : "keyword"
        },
        "additionalProperties" : {
          "properties" : {
            "@class" : {
              "type" : "keyword"
            },
            "eventId" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "linius:offset" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "opta:eventId" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "videoOffset" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            }
          }
        },
        "assetCreated" : {
          "type" : "long"
        },
        "assetEndDate" : {
          "type" : "long"
        },
        "assetId" : {
          "type" : "keyword"
        },
        "assetStartDate" : {
          "type" : "long"
        },
        "created" : {
          "type" : "long"
        },
        "endTime" : {
          "type" : "long"
        },
        "id" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "payload" : {
          "type" : "nested",
          "properties" : {
            "@class" : {
              "type" : "keyword"
            },
            "additionalProperties" : {
              "properties" : {
                "@class" : {
                  "type" : "keyword"
                }
              }
            },
            "category" : {
              "type" : "keyword"
            },
            "clipId" : {
              "type" : "keyword"
            },
            "confidence" : {
              "type" : "double"
            },
            "endTime" : {
              "type" : "long"
            },
            "indexerType" : {
              "type" : "keyword"
            },
            "integerValue" : {
              "type" : "long"
            },
            "payloadId" : {
              "type" : "keyword"
            },
            "payloadValueSuggest" : {
              "type" : "completion",
              "analyzer" : "standard",
              "preserve_separators" : true,
              "preserve_position_increments" : true,
              "max_input_length" : 10000
            },
            "startTime" : {
              "type" : "long"
            },
            "suggestCategory" : {
              "type" : "completion",
              "analyzer" : "standard",
              "preserve_separators" : true,
              "preserve_position_increments" : true,
              "max_input_length" : 10000
            },
            "suggestValueCategory" : {
              "type" : "completion",
              "analyzer" : "standard",
              "preserve_separators" : true,
              "preserve_position_increments" : true,
              "max_input_length" : 10000,
              "contexts" : [
                {
                  "name" : "category-context",
                  "type" : "CATEGORY",
                  "path" : "payload.category"
                }
              ]
            },
            "value" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            }
          }
        },
        "startTime" : {
          "type" : "long"
        },
        "tenantId" : {
          "type" : "keyword"
        },
        "updated" : {
          "type" : "long"
        }
      }
    }
  }
}

SO this is the mapping of indexes of various tenant, I want to remove the suggestValueCategory from payload for all the documents of various indexes , so it is data of multiple tenants means various indexes i cant singlualry go thorugh each document and do re-index , is there any way i can delete the field data from all the indexes

0 Answers0