I have a use case where I need to append certain amount of text to an
existing field of the document which has been already indexed earlier.
After appending I will be reindexing the document. I am predicting the
amount of data which is going to be stored in that single field of my
document will be pretty large so I decided not to store the field as well
as disabled the _source feature on that document type.
I also feel as there will be several indexing/reindexing operations will be
going on simultaneously in the JVM (I am currently using Java API), it will
be highly memory inefficient to bring all such long string object.
I am wondering if the '*streamability' *the field in document in Java API
can be used in someway to make my use case memory efficient. I yes, I would
like to see a kind of pseudocode or example for steps stream operations to
follow to achieve the whole use case memory efficiently?
--