in reply to Inverted indexes and MS Word

I think antiword might be what you need.