File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
lib/elasticsearch/dsl/search Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ class Options
35
35
:indices_boost ,
36
36
:track_scores ,
37
37
:min_score ,
38
- :track_total_hits
38
+ :track_total_hits ,
39
+ :runtime_mappings
39
40
]
40
41
41
42
def initialize ( *args , &block )
Original file line number Diff line number Diff line change @@ -57,6 +57,11 @@ class SearchOptionsTest < ::Elasticsearch::Test::UnitTestCase
57
57
assert_equal ( { script_fields : [ 'foo' ] } , subject . to_hash )
58
58
end
59
59
60
+ should "encode runtime_mappings" do
61
+ subject . runtime_mappings [ 'foo' ]
62
+ assert_equal ( { runtime_mappings : [ 'foo' ] } , subject . to_hash )
63
+ end
64
+
60
65
should "encode fielddata_fields" do
61
66
subject . fielddata_fields [ 'foo' ]
62
67
assert_equal ( { fielddata_fields : [ 'foo' ] } , subject . to_hash )
You can’t perform that action at this time.
0 commit comments