banana icon indicating copy to clipboard operation
banana copied to clipboard

What does the "count" mode in "Terms" panel display?

Open aiguofer opened this issue 10 years ago • 5 comments

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?

selection_031

aiguofer avatar Jun 16 '15 19:06 aiguofer

hi @aiguofer could you post the queries of the two panels?

aadel avatar Jun 16 '15 23:06 aadel

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 avatar Jun 17 '15 00:06 aiguofer

@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.

aadel avatar Jun 17 '15 16:06 aadel

Ahhh... that makes sense. So I really should be adding those exclusions to my stopword list.

aiguofer avatar Jun 17 '15 18:06 aiguofer

might be worth adding a note on the 'exclude' box description, or changing the way it works so it removes them afterward.

aiguofer avatar Jun 18 '15 00:06 aiguofer