Deprecated API Alternative

Hello, for jira version 8.20.9 the ReaderCache API is deprecated ReaderCache (Atlassian Jira - Server 8.20.9 API)
The alternative API is : the DocValues
TwoDimensionalTermHitCollector (Atlassian JIRA 7.1.7 API) is always using the ReaderCache API as a parameter for its constructor.
What can I use instead of TwoDimensionalTermHitCollector ?please can you provide an alternative API for TwoDimensionalTermHitCollector ?
Hope to hear from you soon.
Best Regards