Method: AtlasEngine::Elasticsearch::Repository#search
- Defined in:
- app/models/atlas_engine/elasticsearch/repository.rb
#search(query) ⇒ Object
131 132 133 134 135 136 137 138 |
# File 'app/models/atlas_engine/elasticsearch/repository.rb', line 131 def search(query) path = "/#{active_alias}/_search" response = client.post(path, query, {}) response.body rescue ::Elastic::Transport::Transport::Error => e raise Elasticsearch::Error.new(e., e) end |