mirror of
https://github.com/typeable/bloodhound.git
synced 2025-01-05 21:36:03 +03:00
Fixed bug with IndexSettings serialization
This commit is contained in:
parent
85bbc620f4
commit
de835bce3a
@ -2033,7 +2033,11 @@ instance FromJSON Status where
|
||||
|
||||
|
||||
instance ToJSON IndexSettings where
|
||||
toJSON (IndexSettings s r) = object ["settings" .= object ["shards" .= s, "replicas" .= r]]
|
||||
toJSON (IndexSettings s r) = object ["settings" .=
|
||||
object ["index" .=
|
||||
object ["number_of_shards" .= s, "number_of_replicas" .= r]
|
||||
]
|
||||
]
|
||||
|
||||
instance ToJSON IndexTemplate where
|
||||
toJSON (IndexTemplate p s m) = merge
|
||||
|
Loading…
Reference in New Issue
Block a user