acquireSearcher should fail with state failure when not set/closed
also fixes #4232
acquireSearcher should fail with state failure when not set/closed
also fixes #4232