diff --git a/lib/elasticsearch/dsl/search.rb b/lib/elasticsearch/dsl/search.rb index d06c1dc..63a57af 100644 --- a/lib/elasticsearch/dsl/search.rb +++ b/lib/elasticsearch/dsl/search.rb @@ -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 #