Sorting with Zend Lucene

View: New views
2 Messages — Rating Filter:   Alert me  

Sorting with Zend Lucene

by Matt Schraeder :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

Re: Sorting with Zend Lucene

by tfk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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