I am using the latest Java REST API client and wondering what
Class<TDocument> reference I should be passing to the search() method in case of no object domain model is being used.
At present I am using a bare
Map.class and things are working as expected, though
@SuppressWarnings("rawtypes") is needed: see for example https://github.com/apache/syncope/blob/master/ext/elasticsearch/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/ElasticsearchAnySearchDAO.java#L314-L320
Is such approach correct? TIA