The score number was not correctly parsed by the bash script.
Indeed, a double
number can be returned result as its scientific notation such as 4.06E-05
in JSON. This happens when normal notation is not precise enough to display all significant numbers (eg.0.0000406
).
The following script correctly parses elasticsearch results. In addition, I added the raw output in the results.ok.tsv
file.
ES_HOST=localhost