Skip to content

Commit

Permalink
Changed handling for indextype
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay-apollo committed Oct 17, 2024
1 parent ff1a31d commit 6c650e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/chewy/search/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,8 @@ def reorder(value, *values)
# @return [Chewy::Search::Request]
%i[source stored_fields].each do |name|
define_method name do |value, *values|
modify(name) { update!(['_index_type', *value, *values]) }
values << '_index_type'
modify(name) { update!([value, *values]) }
end
end

Expand Down

0 comments on commit 6c650e5

Please sign in to comment.