Fixed limitation of search items

Fixes bug #10513
you ignore the limit here (by passing -1) which will lead to terrible performance with many users.