Elasticsearch update by query can't update field with null value
$a = NULL;
$b = NULL;
'script' => [
'inline' => "ctx._source.a = $a; ctx._source.b = $b;",
'lang' => 'painless',
],
give me compile error "script_stack":["... x._source.a = ; ctx._source.b ..." invalid sequence of tokens near [';']