Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update setup.md #1525

Merged
merged 1 commit into from May 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 20 additions & 0 deletions doc/setup.md
Expand Up @@ -105,6 +105,26 @@ fos_elastica:
Each defined type is made available as a service, and in this case the service key is
`fos_elastica.index.app.user` and is an instance of `Elastica\Type`.

If you are using Elasticsearch 6.x, you have to create separate index for each type:
```yaml
fos_elastica:
indexes:
app_user:
types:
user:
properties:
username: ~
firstName: ~
lastName: ~
email: ~
app_post:
types:
post:
properties:
title: ~
content: ~
```

FOSElasticaBundle requires a provider for each type that will notify when an object
that maps to a type has been modified. The bundle ships with support for Doctrine objects.

Expand Down