We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fafed33 commit c0556a1Copy full SHA for c0556a1
lib/elasticsearch/dsl/search/queries/function_score.rb
@@ -35,6 +35,7 @@ class FunctionScore
35
option_method :max_boost
36
option_method :score_mode
37
option_method :boost_mode
38
+ option_method :min_score
39
40
def initialize(*args, &block)
41
super
spec/elasticsearch/dsl/search/queries/function_score_spec.rb
@@ -121,6 +121,17 @@
121
expect(search.to_hash[:function_score][:boost_mode]).to eq('bar')
122
end
123
124
+
125
+ describe '#min_scoore' do
126
127
+ before do
128
+ search.min_score('bar')
129
+ end
130
131
+ it 'applies the option' do
132
+ expect(search.to_hash[:function_score][:min_score]).to eq('bar')
133
134
135
136
137
describe '#initialize' do
0 commit comments