We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4addcfd commit 5042f3fCopy full SHA for 5042f3f
elasticsearch-persistence/README.md
@@ -583,6 +583,17 @@ puts results.response.aggregations.authors.buckets.each { |b| puts "#{b['key']}
583
# John : 1
584
```
585
586
+#### Accessing the Repository Gateway
587
+
588
+The Elasticsearch integration is implemented by embedding the repository object in the model.
589
+You can access it through the `gateway` method:
590
591
+```ruby
592
+Artist.gateway.client.info
593
+# GET http://localhost:9200/ [status:200, request:0.011s, query:n/a]
594
+# => {"status"=>200, "name"=>"Lightspeed", ...}
595
+```
596
597
#### Rails Compatibility
598
599
The model instances are fully compatible with Rails' conventions and helpers:
0 commit comments