I am generating a sparse tree typically using a regex (, / r ). What I am trying to do is get an overview of where in my document a match occurs, not the exact positions of the matches. So, if I have a heading with several kilobytes of plain text underneath that contains a match, I don't want my sparse tree to show the plain text, only the relevant heading.
So, given a doc:
* H1 ** H2.1 Foo etc ** H2.2 Bar ** H2.3 Foo etc etc
And a sparse tree generated for regex foo, I would want to see something like
* H1 ** H2.1 ... ** H2.3