@@ -1591,6 +1591,19 @@ main = hspec $ do
1591 (IndexSettings (ShardCount 1) (ReplicaCount 0))
1591 (IndexSettings (ShardCount 1) (ReplicaCount 0))
1592 (NE.toList updates))
1592 (NE.toList updates))
1594+ it "allows total fields to be set" $ when' (atleast es50) $ withTestEnv $ do
1595+ _ <- deleteExampleIndex
1596+ _ <- createExampleIndex
1597+ let updates = MappingTotalFieldsLimit 2500 :| []
1598+ updateResp <- updateIndexSettings updates testIndex
1599+ liftIO $ validateStatus updateResp 200
1600+ getResp <- getIndexSettings testIndex
1602+ getResp `shouldBe` Right (IndexSettingsSummary
1604+ (IndexSettings (ShardCount 1) (ReplicaCount 0))
1605+ (NE.toList updates))
1594 describe "Index Optimization" $ do
1607 describe "Index Optimization" $ do
1595 it "returns a successful response upon completion" $ withTestEnv $ do
1608 it "returns a successful response upon completion" $ withTestEnv $ do
1596 _ <- createExampleIndex
1609 _ <- createExampleIndex