banana
banana copied to clipboard
What does the "count" mode in "Terms" panel display?
So I'm querying a field for a specific word, and I have a Term panel for the same field. From my understanding, the count of that word should be greater than or equal to the number of results (since it could be found more than once in each result). Why am I seeing this?

hi @aiguofer could you post the queries of the two panels?
Term query:
q=body_t%3Asatellite&wt=json&rows=0&fq=created_dt:[2013-06-15T20:27:34.000Z%20TO%202015-06-15T20:27:34.000Z]&fq=language_s:"en"&fq=-body_t:the&fq=-body_t:in&fq=-body_t:to&fq=-body_t:a&fq=-body_t:and&fq=-body_t:for&fq=-body_t:of&fq=-body_t:de&fq=-body_t:red&fq=-body_t:hat&fq=-body_t:redhat&facet=true&facet.field=body_t&facet.limit=1&facet.missing=true
Total hits panel:
q=body_t%3Asatellite&fq=created_dt:[2013-06-15T20:27:34.000Z%20TO%202015-06-15T20:27:34.000Z]&fq=language_s:"en"&wt=json&rows=0
@aiguofer your understanding is correct. That happens due to exclusion filters are taken into consideration in Terms but not Hits and that decreases the number of Terms results which, otherwise, would have been equal or greater than, Hits.
Ahhh... that makes sense. So I really should be adding those exclusions to my stopword list.
might be worth adding a note on the 'exclude' box description, or changing the way it works so it removes them afterward.