@@ -458,7 +458,6 @@ instance ApproxEq UpdatableIndexSetting where
458458 a =~ b = a == b
459459
460460
461−
462461noDuplicates :: Eq a => [a] -> Bool
463462noDuplicates xs = nub xs == xs
464463
@@ -493,6 +492,7 @@ instance Arbitrary a => Arbitrary (Hit a) where
493492 <*> arbitraryScore
494493 <*> arbitrary
495494 <*> arbitrary
495+ shrink = genericShrink
496496
497497
498498instance Arbitrary a => Arbitrary (SearchHits a) where
@@ -501,6 +501,7 @@ instance Arbitrary a => Arbitrary (SearchHits a) where
501501 score <- arbitraryScore
502502 hs <- arbitrary
503503 return $ SearchHits tot score hs
504+ shrink = genericShrink
504505
505506reduceSize :: Gen a -> Gen a
506507reduceSize f = sized $ \n -> resize (n `div` 2) f
@@ -538,9 +539,13 @@ instance Arbitrary AliasRouting where
538539 <$> (Just <$> arbitrary)
539540 <*> (Just <$> arbitrary)
540541 allAlias = AllAliasRouting <$> arbitrary
542+ shrink = genericShrink
543+
541544
542545instance Arbitrary FieldName where
543546 arbitrary = FieldName . T.pack <$> listOf1 arbitraryAlphaNum
547+ shrink = genericShrink
548+
544549
545550instance Arbitrary RegexpFlags where
546551 arbitrary = oneof [ pure AllRegexpFlags
@@ -548,9 +553,12 @@ instance Arbitrary RegexpFlags where
548553 , SomeRegexpFlags <$> genUniqueFlags
549554 ]
550555 where genUniqueFlags = NE.fromList . nub <$> listOf1 arbitrary
556+ shrink = genericShrink
557+
551558
552559instance Arbitrary IndexAliasCreate where
553560 arbitrary = IndexAliasCreate <$> arbitrary <*> reduceSize arbitrary
561+ shrink = genericShrink
554562
555563instance Arbitrary Query where
556564 arbitrary = reduceSize $ oneof [ TermQuery <$> arbitrary <*> arbitrary
@@ -581,6 +589,7 @@ instance Arbitrary Query where
581589 , QueryRangeQuery <$> arbitrary
582590 , QueryRegexpQuery <$> arbitrary
583591 ]
592+ shrink = genericShrink
584593
585594instance Arbitrary Filter where
586595 arbitrary = reduceSize $ oneof [ AndFilter <$> arbitrary <*> arbitrary
@@ -601,6 +610,7 @@ instance Arbitrary Filter where
601610 , RangeFilter <$> arbitrary <*> arbitrary <*> arbitrary <*> arbitrary
602611 , RegexpFilter <$> arbitrary <*> arbitrary <*> arbitrary <*> arbitrary <*> arbitrary <*> arbitrary
603612 , TermFilter <$> arbitrary <*> arbitrary]
613+ shrink = genericShrink
604614
605615instance Arbitrary ReplicaBounds where
606616 arbitrary = oneof [ replicasBounded