mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-09 22:51:02 +00:00
ignore demographics from top-n count
This commit is contained in:
parent
79b51b6335
commit
391e707649
1 changed files with 4 additions and 2 deletions
|
|
@ -113,8 +113,10 @@ func (self *Brand) Rank() {
|
|||
|
||||
var list RankList
|
||||
for k, item := range self.bitmap_cache {
|
||||
if item.bitmap.Count() > 50 {
|
||||
list = append(list, &Rank{&Pair{k, item.bitmap.Count()}, item.bitmap, item.category})
|
||||
if k < 9223372036854775808 { //all demographics is greater than 2^63
|
||||
if item.bitmap.Count() > 50 {
|
||||
list = append(list, &Rank{&Pair{k, item.bitmap.Count()}, item.bitmap, item.category})
|
||||
}
|
||||
}
|
||||
}
|
||||
sort.Sort(list)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue