Using snapshots to migrate data
One popular approach is to take a snapshot of your Elasticsearch OSS 6.x or 7.x indexes, create an OpenSearch cluster, restore the snapshot on the new cluster, and point your clients to the new host.
The snapshot approach can mean running two clusters in parallel, but lets you validate that the OpenSearch cluster is working in a way that meets your needs prior to modifying the Elasticsearch OSS cluster.