Clean pagination information when the alldocs query document is changed.
Add and document the debug setting.