that's certianly one way to do it ... it would probably be faster though to use the TermEnum of the price field directly.
I will look into this. i've yet to really see a good appraoch to progomaticaly
determining (non-trivial) numeric ranges, personally i think that to have good looking ranges you pretty much have to have them picked by a person and stored in metadata.
I have thought about just doing it this way also. I originally did it this way but it would be nice to have different buckets depending on the result set that you have in the category vs. using the same buckets for any result set in a category even though they don't make as much sense anymore depending on the facets selected. i had some comments on this in discussion a
little while back... http://www.nabble.com/forum/ViewPost.jtp?post=3753053&framed=y
I will have to read through this again but it looks like a good discussion. Thanks.