incomplete implementation of the search matches functionality.