On 11-Oct-07, at 8:38 PM, BrendanD wrote:
Mike Klaas wrote:
Any reason why you are faceting on a field that you are restricting?
Clearly, the answer will be '1001644' --> <numFound>, (all other
categories) -> 0.  Just use numFound.

Also, if there can only be one category per doc, make sure you are
using the fieldCache method for category_id.

-Mike


Thanks Mike, that's good to hear it will help.

Unfortunately pretty much ALL of our fields are multi-valued. A product can
exist in multiple categories, be sold by multiple merchants, and have
multiple attributes with multiple attribute values assigned to it. E.g. an iPod in a special Gifts category and also in the MP3 Players category who's audio format support attribute values are MP3, AAC, WAV, and Apple Lossless.

I'm not sure what you mean by "just use numFound"?
I think he means that if items can only be in one category and you're filtering on category, the number of results returned is the number found; there is no need to facet on category as well.

This doesn't apply to you if items can be in more than one category and you need counts for the other categories as well.

Brian Wipf
<[EMAIL PROTECTED]>

Reply via email to