-Re: TermsComponent show only terms that matched query?
Erick Erickson 2012-02-25, 22:54
I've seen the this question go 'round before, but don't remember
a satisfactory solution. Are you talking on a per-document basis
here? If so, I vaguely remember it being possible to do something
with highlighting, just counting the tags returned after highlighting.
On Fri, Feb 24, 2012 at 3:31 PM, Jay Hill <[EMAIL PROTECTED]> wrote:
> 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)
> title: golf legends show how to improve your golf swing on the golf course
> ...other fields
> golf (3)
> swing (1)
> rather than getting back all of the terms in the doc.