Skip to content

Commit e78d9aa

Browse files
committed
[MODEL] Added a separate header for the multi-model search to the README
Related: elastic#345
1 parent b26b67a commit e78d9aa

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

elasticsearch-model/README.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,6 @@ response.results.first._source.title
172172
# => "Quick brown fox"
173173
```
174174

175-
To search across multiple models, use the module method:
176-
177-
```ruby
178-
Elasticsearch::Model.search 'fox dogs', [Article, Comment]
179-
```
180-
181175
#### Search results
182176

183177
The returned `response` object is a rich wrapper around the JSON returned from Elasticsearch,
@@ -259,6 +253,8 @@ response.records.each_with_hit { |record, hit| puts "* #{record.title}: #{hit._s
259253
# * Fast black dogs: 0.02250402
260254
```
261255

256+
#### Searching multiple models
257+
262258
It is possible to search across multiple models with the module method:
263259

264260
```ruby

0 commit comments

Comments
 (0)