You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried the following monkey patch and it seems to fix the bug:
module Chewy
module Fields
class Base
def mappings_hash
mapping =
if children.present?
{(multi_field? ? :fields : :properties) => children.map(&:mappings_hash).inject(:merge)}
else
{}
end
mapping.reverse_merge!(options.except(:ignore_blank)) # here I have to remove "ignore_blank" from "options"
mapping.reverse_merge!(type: (children.present? ? 'object' : Chewy.default_field_type))
{name => mapping}
end
end
end
end
Version Information
v7.2.0
The text was updated successfully, but these errors were encountered:
Expected behavior
chewy:parallel:reset
should work properly with theignore_blank
optionActual behavior
It breaks with the following error:
Steps to reproduce the problem
Create a simple index with "ignore_blank" option for any field:
When run
bin/rake chewy:parallel:reset\[user\]
, the actual payload sent to ES api will contain the "ignore_blank" field which is not accepted by ES:I tried the following monkey patch and it seems to fix the bug:
Version Information
v7.2.0
The text was updated successfully, but these errors were encountered: