Spring Elastic Search Custom Field names
You can use custom name. Spring Data ES use Jackson. So, you can use @JsonProperty("your_custom_name")
to enable custom name in ES Mapping
for example:
@Document(indexName = "your_index_name", type = "your_type_name")public class YourEntity { .... @JsonProperty("my_transportation") @Field(type = FieldType.String, searchAnalyzer = "standard", indexAnalyzer = "standard", store = true) // just for example private String myTransportation; ....}
Note: I'm sorry anyway, my english is bad.. :D