Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overriding index setting configuration bug #921

Closed
wants to merge 14 commits into from

Conversation

petrmalina
Copy link
Contributor

@petrmalina petrmalina commented Feb 20, 2020

Fixes #920.

There were actually two problems.
One mentioned in the issue, merging values into arrays. That is fixed using array_replace_recursive instead of array_merge_recursive.
Second was caused by the array_filter and trying to set number_of_replicas to 0. Array filter converts the value to boolean FALSE and removes it from the array. I added a custom callback function to compare it using identical operator.

@saimaz saimaz changed the base branch from master to 6.2 February 20, 2020 21:10
@saimaz
Copy link
Member

saimaz commented Feb 20, 2020

Thanks for the PR @petrmalina

@saimaz
Copy link
Member

saimaz commented Feb 20, 2020

Merged your commit in the 769cd3d

@saimaz saimaz closed this Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Overriding index setting configuration bug
2 participants