I accidentally added an index on all occurrences of a very common short word. Undoing is no option, I continued editing afte that. It seems libreOffice only allows me to remove them one by one with a lot of manual work.
But it should be possible to write a script which unzips .odt, removes those indexes from content.xml and correctly zips .odt again.
Usage would be
remove_odt_index file.odt targetA targetB …
Does such a script already exist?