« Return to Thread: Re: Sorting with Zend Lucene

Re: Sorting with Zend Lucene

by Matt Schraeder :: Rate this Message:

Reply to Author | View in Thread

My current memory limit is 750 MB.  We're trying to do the sort WITHOUT sending the entire result set to the user.  Ideally we want a sorted result set, then pass pages of 10, 20, 30, 40, 50, etc results back to the user.  But I can't figure out a way of getting the results returned by Lucene to be sorted without running out of memory.

>>> till <klimpong@...> 7/1/2009 10:10:32 AM >>>
On Wed, Jul 1, 2009 at 5:11 PM, Matt Schraeder<MSchraeder@...> wrote:
> I'm having a rather drastic ussing with sorting using Zend Search Lucene.
> Our index has 18,000 documents, so light as far as Lucene is concerned.  I
> can perform a search that will pull back all of our records with no problem.
>
> However, once I attempt to add a sort field (Sorting by Title for instance),
> the script crashes with an out of memory exception.  What is the best way to
> handle sorting to avoid running out of memory?

Not sure if it's helpful, but maybe sort on the client side with JS?

Also, what is your current memory_limit, and how much more does it require?

Till

 « Return to Thread: Re: Sorting with Zend Lucene