Hi all,
I'm using UpdateByQuery from java api. Then i'm setting timestamp value to date field. But this error returned.
ScriptException[compile error]; nested: IllegalArgumentException[invalid sequence of tokens near ['16'].]; nested: NotSerializableExceptionWrapper[no_viable_alt_exception: null];
Here is my source.
"ctx._source.action_date = 2018-11-20 16:00:00.000;"
Here is part of error
Caused By: java.lang.IllegalArgumentException: invalid sequence of tokens near ['16'].
at org.elasticsearch.painless.PainlessScript$Script.compile(ctx._source.action_date=2018-11-20 16:00:00.000;
Should i set timestamp format. And how ? Any recommendation ?
Thanks in advance.