Skip to content

Commit

Permalink
alteração de tipo de atributo
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriano M. La Selva committed May 13, 2020
1 parent e247ca8 commit 7cd407c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solr/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ type CollectionCreate struct {
// If the entire collection can not be fit into the live nodes, no collection
// will be created at all. The default maxShardsPerNode value is 1. A value of -1 means
// unlimited. If a policy is also specified then the stricter of maxShardsPerNode and policy rules apply.
MaxShardsPerNode string `url:"maxShardsPerNode,omitempty"`
MaxShardsPerNode int `url:"maxShardsPerNode,omitempty"`

// Allows defining the nodes to spread the new collection across. The format is a
// comma-separated list of node_names, such as localhost:8983_solr,localhost:8984_solr,localhost:8985_solr.
Expand Down Expand Up @@ -507,7 +507,7 @@ type CollectionRestore struct {
// collection, which could lead to too many replicas being created on a single live node. Defining
// maxShardsPerNode sets a limit on the number of replicas CREATE will spread to each node. If the
// entire collection can not be fit into the live nodes, no collection will be created at all.
MaxShardsPerNode string `url:"maxShardsPerNode,omitempty"`
MaxShardsPerNode int `url:"maxShardsPerNode,omitempty"`

// When set to true, enables auto addition of replicas on shared file systems. See the section
// Automatically Add Replicas in SolrCloud for more details on settings and overrides.
Expand Down

0 comments on commit 7cd407c

Please sign in to comment.