You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree we should catch this earlier. I just reproduced this on 5.1.2. and there I get an ArrayIndexOutOfBoundsException from
java.lang.ArrayIndexOutOfBoundsException: -2
at org.elasticsearch.action.search.SearchPhaseController.sortDocs(SearchPhaseController.java:214) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.action.search.SearchQueryThenFetchAsyncAction.moveToSecondPhase(SearchQueryThenFetchAsyncAction.java:80) ~[elasticsearch-5.1.2.jar:5.1.2]
I think we should reject negative from values already in SearchSourceBuilder, which would mean that errors would be triggered either on the client side or the coordinating node.
I have tried to fire a silly request to ElastiSearch 5.1.1:
GET products/_search
and got this:
I had expected a 400 (user error) and a meaningful error message, like e.g: from parameter cannot be negative.
The text was updated successfully, but these errors were encountered: