Hi,
The filter stage in the code below has no effect (i.e. long values are not filtered).
Does anyone else encountered this issue with Elasticsearch 6.1.1?
long myId = 1;
myMap
.entrySet()
.stream()
.filter(e -> ((Long) e.getKey()).longValue() != myId)
.collect(Collectors.toMap(e -> e.getKey(), e -> e.getValue()));
Thanks,
Christophe
Hi Christophe,
Would you mind posting what values are actually in the Map you're using? If the values are what you expect I may be able to add a test locally on my end to see what's going on. You may be able to use Debug.explain (https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-debugging.html) to print the contents if you haven't already.
Thanks,
Jack
Sorry Jack, I didn't your answer notification, issue was on our side.
Thank you,
Christophe