Java Client lacks functionality

Hi all,

I saw in the docs that Java High-level REST Client is deprecated. However, the recommended Java client lacks basic functionality. For example, in most cases I do search because I don’t know what indices/fields are in repository. However, Java Client enforces that a class (with known structure) is passed as a search parameter. In addition, my search might be an index pattern.

So, is there a way to write a code using Java Client that indexes data or search without passing a class?

Also, is java low level client supported?

Hey @asfoorial, please check [1] that discusses exactly this subject. Thank you.

[1] [FEATURE] Enable Generic HTTP Actions in Java Client · Issue #377 · opensearch-project/opensearch-java · GitHub