What's the difference: IndexRequest set Source by string or by byte[]

Hello, I have a question about the source used for indexation.
The elasticsearch IndexRequest API provides both setSource(String) and
setSource(byte[]), the java doc of the first one says it's preferable to
use the second.

So what's the advantage to set source by byte array instead of by string?
Is there some consideration of performance or of encoding format


You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.