Lucene creates an array of one item per document for every field you
sort on. If you sort on a thousand fields, Lucene will create 1000
different arrays of 500K ints. I assume there is some sort of cache of
these arrays. In Solr, it is also possible to sort using a function as
the relevance value.
Thanks Otis for the reply. Yes this will be pretty memory intensive.
The size of the index is 5 cores with a maximum of 500K documents each
core. I did search the archives before but did not find any definite
answer. Thanks again!
Alex
On Nov 27, 2009, at 11:09 PM, Otis Gospodnetic wrote:
Hi Alex,
There is no build-in limit. The limit is going to be dictated by your hardware
resources. In particular, this sounds like a memory intensive app because of
sorting on lots of different fields. You didn't mention the size of your
index, but that's a factor, too. Once in a while peop