This query fetching the _docId_ should actually be run in the following try/catch block to use the same _IndexReader_ instance.