When NXP-23725 is done, the Drive FT should call the generic operation Elasticsearch.WaitForIndexing with waitForAudit=true instead of the custom one NuxeoDrive.WaitForElasticsearchCompletion that will be deprecated with NXP-23762.
The waitForAudit parameter will only be available starting from 9.10, so Drive should check if it is available before using it, else falling back on the old code calling NuxeoDrive.WaitForElasticsearchCompletion (and continue falling back on the very old code calling NuxeoDrive.WaitForAsyncCompletion).