Skip to content

Commit e1aa0f0

Browse files
committed
Adding missing runtime_mappings word to the search
1 parent 784759f commit e1aa0f0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

lib/elasticsearch/dsl/search/options.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ class Options
3535
:indices_boost,
3636
:track_scores,
3737
:min_score,
38-
:track_total_hits
38+
:track_total_hits,
39+
:runtime_mappings
3940
]
4041

4142
def initialize(*args, &block)

test/unit/search_options_test.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ class SearchOptionsTest < ::Elasticsearch::Test::UnitTestCase
5757
assert_equal( { script_fields: ['foo'] }, subject.to_hash )
5858
end
5959

60+
should "encode runtime_mappings" do
61+
subject.runtime_mappings ['foo']
62+
assert_equal( { runtime_mappings: ['foo'] }, subject.to_hash )
63+
end
64+
6065
should "encode fielddata_fields" do
6166
subject.fielddata_fields ['foo']
6267
assert_equal( { fielddata_fields: ['foo'] }, subject.to_hash )

0 commit comments

Comments
 (0)