매일 짧게 기록합니다
@Field
를 사용하기로 했다. 아니... 스프링 공식 문서에도Without further configuration, Spring Data Elasticsearch will use the property name of an object as field name in Elasticsearch. This can be changed for individual field by using the @Field annotation on that property.
It is also possible to define a FieldNamingStrategy in the configuration of the client (Elasticsearch Clients). If for example a SnakeCaseFieldNamingStrategy is configured, the property sampleProperty of the object would be mapped to sample_property in Elasticsearch. A FieldNamingStrategy applies to all entities; it can be overwritten by setting a specific name with @Field on a property.
이렇게 써있어서!!! FieldNamingStrategy 오버라이드해서 정의해줬는데도 안먹힌다..... 이해를 할 수가 없닼ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ... 내가 쪼렙이라 그런거겠지 하고.. 그냥 필드 하나하나에 한땀한땀 @Field
를 넣어줬다 🙃