Re: Returning max value of fields within documents

2010-09-14 Thread Jonathan Rochkind
Oh wait, I misunderstood, you want just the highest value _for one document_, from stored fields, given for each document? StatsComponent won't help you there. Either do it client side, or do it at index time in a single stored field, that's it. Maybe there's some confusing way to use a quer

Re: Returning max value of fields within documents

2010-09-14 Thread Jonathan Rochkind
The stats component will give you the maximum value within one field: http://wiki.apache.org/solr/StatsComponent You're going to have to compute the max amongst several fields client-side, having StatsComponent return the max for each field, and then just max-ing them client side. Not hard.