on master help sign in
Add necessary type signature to custom index settings in example

This is for #102

commit4b4374804597f009a4bcfcd19d3d17764463c164 authorMichael Xavier <michael@michaelxavier.net> dateWed 28 Nov 2018, 15:38 (8 years ago) parent78c85ee
2 files changed+3−2
katip-elasticsearch/examples/example.hs+2−1 katip-elasticsearch/src/Katip/Scribes/ElasticSearch.hs+1−1
katip-elasticsearch/examples/example.hs+2−1
@@ -18,11 +18,12 @@ main :: IO ()
1818main = do
1919 mgr <- newManager defaultManagerSettings
2020 let bhe = mkBHEnv (Server "http://localhost:9200") mgr
21+ -- You may need to specify the version in a type signature when customizing your index settings
22+ let _customizedExample = defaultEsScribeCfgV5 { essIndexSettings = IndexSettings (ShardCount 1) (ReplicaCount 0)} :: EsScribeCfg ESV5
2123 esScribe <- mkEsScribe
2224 -- Reasonable for production
2325 defaultEsScribeCfgV5
2426 -- Reasonable for single-node in development
25− -- defaultEsScribeCfgV5 { essIndexSettings = IndexSettings (ShardCound 1) (ReplicaCount 0)}
2627 bhe
2728 (IndexName "all-indices-prefixed-with")
2829 (MappingName "application-logs")
katip-elasticsearch/src/Katip/Scribes/ElasticSearch.hs+1−1
@@ -22,7 +22,7 @@
2222-- -- Reasonable for production
2323-- defaultEsScribeCfgV5
2424-- -- Reasonable for single-node in development
25−-- -- defaultEsScribeCfgV5 { essIndexSettings = IndexSettings (ShardCound 1) (ReplicaCount 0)}
25+-- -- defaultEsScribeCfgV5 { essIndexSettings = IndexSettings (ShardCound 1) (ReplicaCount 0)} :: EsScribeCfg ESV5
2626-- bhe
2727-- (IndexName "all-indices-prefixed-with")
2828-- (MappingName "application-logs")