Ha ha ha dear Jonny great you could test this.
It appears that I tried something similar to the sample code you posted on my local with Firefox and it didn’t worked for me. But know I know what should work, thank you very much for this !
Tomorrow I will on a real server. (I’m not using elasticSearch)