Skip to content

Commit

Permalink
Update search.rb example code (#593)
Browse files Browse the repository at this point in the history
update example code
  • Loading branch information
soartec-lab authored and estolfo committed Jan 15, 2019
1 parent 54bc0dc commit a46bda3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/elasticsearch/dsl/search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,16 @@ module Search
# match title: 'test'
# end
# end
# definition.to_hash
# => {:query=>{:match=>{:title=>"test"}}}
#
# @example Using the class imperatively
#
# definition = Search.new
# query = Query.new
# query = Queries::Match.new title: 'test'
# definition.query query
# definition.to_hash
# # => => {:query=>{:match=>{:title=>"Test"}}}
# # => {:query=>{:match=>{:title=>"test"}}}
#
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search.html
#
Expand Down

0 comments on commit a46bda3

Please sign in to comment.