Added document search condition to global search