Say I have N categories, each item is assigned to one or more categories.
And i want the search results being counted against each of the categories.

I checked the Lucene in Action book, and there doesn't seem to be this
feature. So is there any plan to add binning to Lucene?

It looks like this involves modifying part of the Lucene's implementation,
in that, we can:

- specify which index field is used as the binning field.
- after we grab the doc-id list, we perform N intersections just to get the
count:  each intersection is performed on the result doc-id list and the
doc-id list for all items assigned to a category.

Is there any better approach to do that? or any optimizations to this?


thanks,

-Hui

Reply via email to