We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54bc0dc commit a46bda3Copy full SHA for a46bda3
lib/elasticsearch/dsl/search.rb
@@ -32,14 +32,16 @@ module Search
32
# match title: 'test'
33
# end
34
35
+ # definition.to_hash
36
+ # => {:query=>{:match=>{:title=>"test"}}}
37
#
38
# @example Using the class imperatively
39
40
# definition = Search.new
- # query = Query.new
41
+ # query = Queries::Match.new title: 'test'
42
# definition.query query
43
# definition.to_hash
- # # => => {:query=>{:match=>{:title=>"Test"}}}
44
+ # # => {:query=>{:match=>{:title=>"test"}}}
45
46
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search.html
47
0 commit comments