Mitigation for Confluence deprecated method

I have a Confluence plugin where I use, but this method is deprecated from v5.7.2 Confluence. Now my Confluence is upgraded to 6.13.4 and I am in search of alternative method for it. I read in the Confluence source code and I see a suggestion “This method on one hand is rarely used on the other hand is not efficient to implement in ES”.;

searchResults =;

Confluence source code 6.10 shows this method as deprecated.
SearchResults search(SearchWithToken search) throws SearchTokenExpiredException, InvalidSearchException;

Do we have any alternative method for this ?