Deprecated use of partial fields in Java API

Deprecated use of partial fields in Java API, was already deprecated in the docs for the search API

Closes #4118