After hours of Googling and banging my head against a wall, I finally managed to pre-index an Eclipse Help documentation plugin using just Ant and a minimal Eclipse distribution.
A heads up: the information here is somewhat skewed towards DITA-OT users, but I'm sure it's mostly useful even if you don't use DITA-OT.