Hello,
I had a similar issue and this worked for me: (cleanup the DB)
https://help.nextcloud.com/t/xml-files-indexing-in-fulltextsearch-elasticsearch/48458
Don’t forget to delete the index if you haven’t done already.
curl -X DELETE “user:password@elastic_ip:9200/my_index”
Cheers,
St.