migrate search to new signature

Again, required parameters are given their own argument slots, optional ones an
options hash at the end.