make pagination of search result work with product's db model