This release slightly changes how the minResults
and maxResults
search options work in order to support
- Searching with no limit, and
- Searching using only
maxResults
To support these two use cases, the following changes were made:
- A negative value for
minResults
will mean "no limit" (return all results), and minResults
will take on the value ofmaxResults
if:minResults === undefined
andmaxResults > 0
, orminResults
is negative (prevents over-fetching now that no limit searching is supported)
Otherwise, the current behavior is unchanged. If minResults
is unspecified then its default will still be 20
(as long as maxResults
is not positive), and if minResults
is non-negative then no meddling will occur.