tokee / lucene-solr

High cardinality faceting (SOLR-5894)
http://tokee.github.io/lucene-solr/
7 stars 1 forks source link

The counter at index 0 in SparseCounterPacked can exceed maxTermCount #16

Closed tokee closed 9 years ago

tokee commented 9 years ago

The counter at index 0 is special as it is used to count documents without any value in the given facet. This count can exceed the maxTermCount and thus overflowing the counts for the first few terms.

This can either be solved by setting maxTermCount = maxDoc (very memory wasteful) or by using a dedicated int for the 0-counter (potentially slowing updates).