The request requires the {@link #scriptLang(String)}, {@link #id(String)} and{@link #source(byte[])} to be set.
The source (content to index) can be set in its bytes form using ( {@link #source()} (byte[])}),its string form ( {@link #source(String)}) or using a {@link org.elasticsearch.common.xcontent.XContentBuilder}( {@link #source(org.elasticsearch.common.xcontent.XContentBuilder)}).
If the {@link #id(String)} is not set, it will be automatically generated. @see PutIndexedScriptResponse
|
|