Document the search API, fixes #21.