serialize object directly

This commit is contained in:
Jonathan Shook 2024-02-07 18:46:44 -06:00
parent 4382d2f0a3
commit 99a1b287e2

View File

@ -61,7 +61,7 @@ public class IndexOpDispenser extends BaseOpenSearchOpDispenser {
private IndexRequest.Builder<?> bindDocument(IndexRequest.Builder builder, Object docdata) {
String document = gson.toJson(docdata);
return builder.document(document);
return builder.document(docdata);
}
}