lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marvin Humphrey <>
Subject Aggregating category hits
Date Mon, 15 May 2006 21:07:22 GMT

If you needed to know not just the total number of hits, but the  
number of hits in each "category", how would you handle that?

For instance, a search for "egg" would have to produce the 20 most  
relevant documents for "egg", but also a list like this:

     Holiday & Seasonal / Easter     75
     Books / Cooking                 52
     Miscellaneous                   44
     Kitchen Collectibles            43
     Hobbies / Crafts                17

It seems to me that you'd have to retrieve each hit's stored fields  
and examine the contents of a "category" field.  That's a lot of  
overhead.  Is there another way?

Marvin Humphrey
Rectangular Research

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message