We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd80c8e commit a5db9efCopy full SHA for a5db9ef
spec/elasticsearch/dsl/search_spec.rb
@@ -158,14 +158,10 @@ def aggregation_name
158
159
let(:s) do
160
161
- def term_field
162
- :color
163
- end
164
-
165
def not_clause(obj)
166
obj.instance_eval do
167
_not do
168
- term term_field => 'red'
+ term color: 'red'
169
end
170
171
@@ -272,7 +268,7 @@ def bool_query(obj)
272
268
273
269
274
270
275
- it 'finds the correct bindings' do
271
+ it 'allows the subquery to be defined on the calling scope' do
276
expect(my_search.to_hash).to eq(query: { bool: { filter: [{ term: { foo: 'bar' } }],
277
must: [{ match: { foo: 'bar' } }] } })
278
0 commit comments