correctly honor the showSearch option