As in the title - I’m migrating queries from ElasticSearch to OpenSearch. So far queries from ES are mostly working in OS, but for some of them I had to do a little tweaking.
What I came up recently is a strange situation, in which query that works perfectly fine in ES, and also in the OpenSearch console, suddenly when executed using RestHighLevelClient in Java, throws malformed query exception.
I don’t want to start with pasting query here, more I would like to know if anyone had ever similar situation, and could tell me what could be the problem here. RequestOptions being send? OpenSearch config?