0
0
Fork 0

Fix ES_PRESET not being applied to Chewy's internal index (#26489)

This commit is contained in:
Claire 2023-08-14 19:00:56 +02:00 committed by GitHub
parent 90ec88d58b
commit dd049fc37a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -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