Get Document APIs throw incorrect method error

Ah that explains it, thank you. I doubt this is Kotlin specific, but I cannot reproduce the issue with the Java snippet, may I ask you please to try out with the latest OpenSearch Java Client 2.10.2 ?

org.opensearch.client:opensearch-java:2.10.2