Closed
Description
Hi,
In ReactiveElasticsearchTemplate.class there are such a methods like:
- protected Mono doCount(SearchRequest request)
- protected Flux doScroll(SearchRequest request)
- protected Flux doFind(SearchRequest request)
That methods catch NoSuchIndexException when index not exists and return Mono.empty(). Is it not better solution to throw such a exception? Because it might be really difficult to guess what the real problem is when we get empty data from elastic when the real problem is wrong index name and there is no information in logs.
Metadata
Metadata
Assignees
Labels
No labels