Correct, but it sounds like a great feature to request - the ability to
requests stats for a function query.
-- Jack Krupansky
-----Original Message-----
From: Edward Garrett
Sent: Wednesday, December 05, 2012 10:56 AM
To: solr-user@lucene.apache.org
Subject: not possible to apply StatsComponent to pseudo-field?
hi,
i guess it's not possible to apply stats to a pseudo field? for
example if you have
&fl=*,count:termfreq(text,'solr')
you can't tack on
&fl=*,count:termfreq(text,'solr')&stats=true&stats.field=count
to give you for example the total number of times that the word 'solr'
appeared in the field 'text' for the subset of documents retrieved by
a given query?
the totaltermfreq function is limiting in that it applies across the
entire index, ignoring your query/filter query.
thanks,
edward