Module: Elasticsearch::Model::Searching::ClassMethods
- Included in:
- Proxy::ClassMethodsProxy
- Defined in:
- lib/elasticsearch/model/searching.rb
Instance Method Summary collapse
-
#search(query_or_payload, options = {}) ⇒ Elasticsearch::Model::Response::Response
Provides a ‘search` method for the model to easily search within an index/type corresponding to the model settings.
Instance Method Details
#search(query_or_payload, options = {}) ⇒ Elasticsearch::Model::Response::Response
Provides a ‘search` method for the model to easily search within an index/type corresponding to the model settings.
115 116 117 118 119 |
# File 'lib/elasticsearch/model/searching.rb', line 115 def search(query_or_payload, ={}) search = SearchRequest.new(self, query_or_payload, ) Response::Response.new(self, search) end |