Add an UpdateRequest example to Java API doc

Closes #7083.
Perhaps an example of setting properties? It looks like you're just setting the ID of the document, which shouldn't be updatable anyway