Prepare for searching