Here is how I would do it...
def searchString = "${params.author}%"
def searchResults = Book.findAllByAuthorLike(searchString, params) // max, offset automatically handled
def total = Book.countByAuthorLike(searchString)
render (model:[searchResults: searchResults, total: total])
in your GSP, iterate over your searchResults
with:
<g:each var="book" in="${searchResults}">...
and after that include:
<g:paginate controller="displayBook" action="index" total="${total}"/>