now you can set max number of docs to indexed