Found a bug causing far too many documents being added to the index.
This bugfix is a probably a big performance improvement.