Fulltext index doesn’t work with apoc.merge.node

Anyone seen problems with apoc.merge.node and fulltext index with a custom analyzer? My custom analyzer works perfectly with the cypher merge statement but the same merge with apoc seems to skip the index or at least the analyzer.
Tested in neo 3.5.17 and 4.0.3.
Let me know if people encountered this and have a solution otherwise I will dive in deeper in the coming days

It was an error in my custom analyzer. reset() method was not correctly implemented.