Fix ES_PRESET not being applied to Chewy's internal index (#26489)
This commit is contained in:
parent
90ec88d58b
commit
dd049fc37a
2 changed files with 6 additions and 0 deletions
|
@ -15,6 +15,9 @@ Chewy.settings = {
|
|||
journal: false,
|
||||
user: user,
|
||||
password: password,
|
||||
index: {
|
||||
number_of_replicas: ['single_node_cluster', nil].include?(ENV['ES_PRESET'].presence) ? 0 : 1,
|
||||
},
|
||||
}
|
||||
|
||||
# We use our own async strategy even outside the request-response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue