The boolean parameter shouldn't be hardcoded to false, it's supposed to indicate if there are more search results.

You also need to make a call to getCountOfDrugs, and do something like:
    boolean hasMore = count > startIndex + limit;