allowed search method to take a dataset, fixes #3