I'm trying to execute partial updates in Elastic Search using Hibernate Search. I have checked the requests to Elastic Search created by Hibernate Search and they update the whole document.
I need this requirement because my documents contain a field with the contents of a file, this field is only filled in the creation of the document and it never changes. Extracting the content of the file is quite expensive because requires some decryption and processing by Apache Tika. On the other hand, the other fields change very often.
Code:
Attachment (class)
Name (field)
Content (field) - it never changes and expensive to extract
Folder (field) - it changes very often
Status (field) - it changes very often
Is it possible to execute Elastic Search partial updates with Hibernate Search or there is any other way of solving this problem? Thanks in advance.