On Apr 1, 2010, at 11:13 PM, Michel Nadeau wrote: > My big question is how do you loop 1M records, sum up field(s), and then > sort on that field... all in memory (could use too much ram) ? In a > temporary index (could take a while to re-write a lot of documents in a new > index) ? >
You're going to need to do some combination of Collector, FieldCache and the existing Sort code. Doesn't Solr's StatsComponent work for this? -Grant --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org