how to select top categories.

2006-01-25 Thread Mike Austin
I have ~5 million documents that are in categories and subcategories. Let us say that my query is for search terms in one top-level category and it returns a large amount of documents and I want to list the top 5 sub-categories by highest count total. I know I can't go one by one counting through t

Re: how to select top categories.

2006-01-25 Thread Mike Austin
Chris.. thanks for you quick response. :doing a few thousand BitSet intersections doesn't take as much time as you think Even if the BitSet is around 4-5 million? and I would have to quickly go through about a thousand of these? I guess I would have to decide what sub-cats to cache the bitsets fo