@@ -582,6 +582,7 @@ data UpdatableIndexSetting = NumberOfReplicas ReplicaCount
582582 | IndexCompoundFormat CompoundFormat
583583 | IndexCompoundOnFlush Bool
584584 | WarmerEnabled Bool
585+ | MappingTotalFieldsLimit Int
585586 deriving (Eq, Show, Generic, Typeable)
586587
587588data AllocationPolicy = AllocAll
@@ -2988,6 +2989,7 @@ instance ToJSON UpdatableIndexSetting where
29882989 toJSON (BlocksRead x) = oPath ("blocks" :| ["read"]) x
29892990 toJSON (BlocksWrite x) = oPath ("blocks" :| ["write"]) x
29902991 toJSON (BlocksMetaData x) = oPath ("blocks" :| ["metadata"]) x
2992+ toJSON (MappingTotalFieldsLimit x) = oPath ("index" :| ["mapping","total_fields","limit"]) x
29912993
29922994instance FromJSON UpdatableIndexSetting where
29932995 parseJSON = withObject "UpdatableIndexSetting" parse
@@ -3019,6 +3021,7 @@ instance FromJSON UpdatableIndexSetting where
30193021 <|> blocksRead `taggedAt` ["blocks", "read"]
30203022 <|> blocksWrite `taggedAt` ["blocks", "write"]
30213023 <|> blocksMetaData `taggedAt` ["blocks", "metadata"]
3024+ <|> mappingTotalFieldsLimit `taggedAt` ["index", "mapping", "total_fields", "limit"]
30223025 where taggedAt f ks = taggedAt' f (Object o) ks
30233026 taggedAt' f v [] = f =<< (parseJSON v <|> (parseJSON (unStringlyTypeJSON v)))
30243027 taggedAt' f v (k:ks) = withObject "Object" (\o -> do v' <- o .: k
@@ -3051,6 +3054,7 @@ instance FromJSON UpdatableIndexSetting where
30513054 blocksRead = pure . BlocksRead
30523055 blocksWrite = pure . BlocksWrite
30533056 blocksMetaData = pure . BlocksMetaData
3057+ mappingTotalFieldsLimit = pure . MappingTotalFieldsLimit
30543058
30553059instance FromJSON IndexSettingsSummary where
30563060 parseJSON = withObject "IndexSettingsSummary" parse