This is not quite ready for prime time yet but it's a good start! https://www.latex-project.org/publications/indexbytopic/pdf/