You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes ES index mapping naming strategy is SNAKE_CASE like: { "mapping": { "properties": { "customer_id": { "type": "long" }, "order_no": { "type": "keyword" } } } }
but Java object is LOWER_CAMEL_CASE like:
`public class Order {
private Long customerId;
private String orderNo;
}`
In spring-data-elasticsearch 3x, we can use @JsonNaming or replace implements of org.springframework.data.elasticsearch.core.EntityMapper with SNAKE_CASE naming strategy ObjectMapper to map or read Java object;
In future spring-data-elasticsearch , Can it support:
config global naming strategy between ES index mapping and Java object
customized config for each ES index, like @JsonNaming in spring-data-elasticsearch 3x
The text was updated successfully, but these errors were encountered:
Sometimes ES index mapping naming strategy is SNAKE_CASE like:
{ "mapping": { "properties": { "customer_id": { "type": "long" }, "order_no": { "type": "keyword" } } } }
but Java object is LOWER_CAMEL_CASE like:
In spring-data-elasticsearch 3x, we can use
@JsonNaming
or replace implements oforg.springframework.data.elasticsearch.core.EntityMapper
with SNAKE_CASE naming strategy ObjectMapper to map or read Java object;In future spring-data-elasticsearch , Can it support:
@JsonNaming
in spring-data-elasticsearch 3xThe text was updated successfully, but these errors were encountered: