Open
Description
Currently the generated scripts only check the first value returned from doc values regardless of the number of values.
In order to be aligned with the query behavior, the scripts should check that at least on value matches not just the first.
Since doc values serve as input, this change requires a different script generation strategy to go through all values.