I have a situation where I want to show the term counts as is done in the TermsComponent, but *only* for terms that are *matched* in a query, so I get something returned like this (pseudo code):
q=title:(golf swing) <doc> title: golf legends show how to improve your golf swing on the golf course ...other fields </doc> <terms> golf (3) swing (1) </terms> rather than getting back all of the terms in the doc. Thanks, -Jay