Spring Data ES Repository Method
- taolius
- Jan 13, 2016
- 1 min read
Current Spring Data ES (1.3.2) does not support delete a child entity with "routing" set as "required". So has to use native client to do the deletion.
In child entity, the "@Parent" annotation must place at the right place for Spring Data ES repository method to save child entity correctly with "parent" and "routing" information.
Cast a child list to parent
List<? extends Base> baseList = subList;
Comments