# Java API - what are TDocument, TPartialDocument?

**URL:** <https://discuss.elastic.co/t/java-api-what-are-tdocument-tpartialdocument/352199>\
**Category:** Elasticsearch\
**Created:** [January 31, 2024, 2:31pm UTC](https://discuss.elastic.co/t/java-api-what-are-tdocument-tpartialdocument/352199 "2024-01-31T14:31:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TimWardFS](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timwardfs/32/65108_2.png) [@TimWardFS](https://discuss.elastic.co/u/TimWardFS)\
**Post date:** [January 31, 2024, 2:31pm UTC](https://discuss.elastic.co/t/java-api-what-are-tdocument-tpartialdocument/352199/1 "2024-01-31T14:31:59Z")

</div>

We're converting some code from using the old client to the new client.

The new version of `UpdateRequest`, to pick an example, now has type parameters `TDocument` and `TPartialDocument` ... but I can't find out (after a couple of hours of reading documentation and searching) what these are, where I'm supposed to get them from, etc?

* * *

Well, if I set them to `<Object, Object>` then things work ... but ... ???

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 28, 2024, 2:32pm UTC](https://discuss.elastic.co/t/java-api-what-are-tdocument-tpartialdocument/352199/2 "2024-02-28T14:32:28Z")

</div>

Closed on February 28, 2024, 2:32pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
