Sanne/hibernate-search — comment on commit 39777fc9ce5d9cb774509122f849b7c2ed49463e
File: hibernate-search-engine/src/main/java/org/hibernate/search/query/engine/impl/HSQueryImpl.java line 108
By Sanne:

Exactly, it might have a value "undefined", that's why I added the other boolean _definedMaxResults_ . . same logic on the rest of the patch, the cost of box numbers is just too high.
While I agree dealing with the two fields is not ideal, having to deal with "might be null" is even worse imho..