I am looking to have a number of categories populated from my results of 
a search. For example, searching on "sport" would display all results 
for sport. I want to also have a number of categories to refine the 
documents down. So by clicking on the "Fishing" category or the 
"Shooting" category, I would only see the results on sport around that 
category.

Now for the fun. I want to determine the total number of results in each 
category for a give search. So in the above, for a search on sport I 
want to display the results but in the Fishing item I want to say how 
many results there are in total before the user clicks on the item. For 
example in the pull down I want to display "Fishing (10001), Shooting 
(2003)".

I was going to do this in Ruby by doing a simple count for each category 
item on the returned result set, but I believe that this would mean 
returning all the results of a given query to Ruby in order to do this 
count and I am concerned that this would cause performance issues for 
large result sets.

If I put pagination into the mix and only display the first 50 results 
on the screen, would this add an additional complexity or would this 
just be called through Ruby?

Thanks for your assistance with this...

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to