Skip to content

Commit

Permalink
#9 Use number of replicas and shards from configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed May 6, 2017
1 parent 72d4aa1 commit a06f989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/org/elastic4play/database/DBIndex.scala
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ class DBIndex(
com.sksamuel.elastic4s.ElasticDsl.create
.index(db.indexName)
.mappings(modelsMapping: _*)
.shards(4)
.replicas(3)
.shards(nbShards)
.replicas(nbReplicas)
}
.map { _ () }
}
Expand Down

0 comments on commit a06f989

Please sign in to comment.