I have just begun using the index feature in InDesign for the first time. Since I have been learning as I go (and made part use of the automated list all feature), I created somewhat "messy" page references. I was surprised, however, that InDesign doesn't seem to clean them up at all. For example, an index entry will list "4-25, 5, 8, 12, 14, 19, 20, 22, 24, 25." It seems like it would make more sense to recognize overlapping page ranges when it generates the index and simplify the listings considerably (i.e. just list "4-25").

Is there some way to get this to happen? I've searched through help files and forum posts and not found anything. Right now the only options I can see are: clean up my page references manually (very tedious), start all over (worse still) or clean up the index manually. Any other thoughts are welcome.

I've been using InDesign CS4 (in OS X), though I have access to CS6 (currently I'm making only limited use of it because my iMac is apparently too old to run it efficiently).