Problem discovered (but not yet solved): the search function is fine,
but getBase isn't working