Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #22 from martinpetrasch/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
jbdemonte committed Apr 2, 2017
2 parents 6b535a4 + 28a6172 commit b16a0fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -217,7 +217,7 @@ doc.save(function (err) {
```


###Indexing Nested Models
### Indexing Nested Models
In order to index nested models you can refer following example.

```javascript
Expand All @@ -240,7 +240,7 @@ var User = mongoose.model('User', UserSchema);
```


###Indexing Populated Models
### Indexing Populated Models
To index populated models (`ref` model), it is mandatory to provide a schema to explain what to index in the `es_type` key.
**This plugin will never populate** models by its own, **you have to populate** the models.

Expand Down

0 comments on commit b16a0fa

Please sign in to comment.