We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
to_a
1 parent 6516521 commit fe16964Copy full SHA for fe16964
elasticsearch-model/README.md
@@ -194,6 +194,13 @@ response.any? { |r| r.title =~ /fox|dog/ }
194
# => true
195
```
196
197
+To use `Array`'s methods (including any _ActiveSupport_ extensions), just call `to_a` on the object:
198
+
199
+```ruby
200
+response.to_a.last.title
201
+# "Fast black dogs"
202
+```
203
204
#### Search results as database records
205
206
Instead of returning documents from Elasticsearch, the `records` method will return a collection
0 commit comments