module ROM::Elasticsearch::Plugins::Relation::QueryDSL::InstanceMethods
@api public
Public Instance Methods
search(options = EMPTY_HASH, &block)
click to toggle source
Restrict a relation via query DSL
@see Relation#search @see github.com/elastic/elasticsearch-ruby/tree/master/elasticsearch-dsl
@return [Relation]
@api public
Calls superclass method
# File lib/rom/elasticsearch/plugins/relation/query_dsl.rb, line 31 def search(options = EMPTY_HASH, &block) if block super(query_builder.search(&block).to_hash) else super end end