Spring data CrudRepository's findById method is useful and handy to use, but in spring-data-elasticsearch, we should specify not only id but routing attribute together to find a doc in index with multiple shards.
- Does it mean
CrudRepository#findByIdis useless or even misleading(if_idis not equal to_routing) in spring-data-elasticsearch? - Is there any way to find a doc by id and routing, without construct a search request manually, in spring-data-elasticsearch?
Any suggestion would be appreciated!