There is [more advanced indexing available for Noweb](https://www.cs.tufts.edu/~nr/noweb/indexing.html). Look into using that.