NXP-15988: enable to set limit(0) and have the totalSize, understand limit(-1) as all docs