Sorting with Zend Lucene

2 messages Options
Embed this post
Permalink
Matt Schraeder

Sorting with Zend Lucene

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
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?
tfk

Re: Sorting with Zend Lucene

Reply Threaded More More options
Print post
Permalink
On Wed, Jul 1, 2009 at 5:11 PM, Matt Schraeder<[hidden email]> 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