Unhandled query size parameter #22530
Labels
>bug
good first issue
low hanging fruit
help wanted
adoptme
:Search/Search
Search-related issues that do not fall into other categories
Elasticsearch version: ES 5.x
Plugins installed: none
JVM version: Any
OS version: Any
[1] Using
-1
for the size returns top 10 results[2] Using any number
<-1
returns an unhandled Lucene error:I think that the
QueryPhase
class should catch this before being an exception, so we avoid the exception thrown byTopScoreDocCollector
. In other words, any number below 0 should return a custom Elasticsearch exception.Also, reading the code i don't understand why
-1
is just handled correctly.The text was updated successfully, but these errors were encountered: