Skip to content

Commit

Permalink
Adding missing runtime_mappings word to the search
Browse files Browse the repository at this point in the history
  • Loading branch information
mhddenno committed Aug 18, 2022
1 parent 784759f commit e1aa0f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/elasticsearch/dsl/search/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class Options
:indices_boost,
:track_scores,
:min_score,
:track_total_hits
:track_total_hits,
:runtime_mappings
]

def initialize(*args, &block)
Expand Down
5 changes: 5 additions & 0 deletions test/unit/search_options_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ class SearchOptionsTest < ::Elasticsearch::Test::UnitTestCase
assert_equal( { script_fields: ['foo'] }, subject.to_hash )
end

should "encode runtime_mappings" do
subject.runtime_mappings ['foo']
assert_equal( { runtime_mappings: ['foo'] }, subject.to_hash )
end

should "encode fielddata_fields" do
subject.fielddata_fields ['foo']
assert_equal( { fielddata_fields: ['foo'] }, subject.to_hash )
Expand Down

0 comments on commit e1aa0f0

Please sign in to comment.