Skip to content

Properties should be camel case #1204

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

Merged
merged 1 commit into from
Jan 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/elasticsearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ API Platform follows the best practices of Elasticsearch:
index](https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html);
* index name should be the short resource name in lower case;
* the default `_doc` type should be used;
* all fields should be lower case and should use snake case for combining words.
* all fields should be lower case and should use camel case for combining words.

This involves having mappings and models which absolutely match each other.

Expand Down Expand Up @@ -222,7 +222,7 @@ class Tweet
}
```

API Platform will automatically disable write operations and snake case document fields will automatically be converted to
API Platform will automatically disable write operations and camel case document fields will automatically be converted to
camel case object properties during serialization.

Keep in mind that it is your responsibility to populate your Elasticsearch index. To do so, you can use [Logstash](https://www.elastic.co/products/logstash),
Expand Down