2008年7月23日星期三

[fw-formats] Zend Search Lucene : Allowed Memory Exhausted

Hi,

I am getting allowed memory exhausted error while using find() for
reading indexed records. Following is the code which i'm using.

Zend_Search_Lucene_Analysis_Analyzer::setDefault( new
StandardAnalyzer_Analyzer_Standard_English() );
$index = Zend_Search_Lucene::open(INDEX_PATH);
$userQuery = Zend_Search_Lucene_Search_QueryParser::parse($query);
$userQuery = $index->find($userQuery, 'biz_type', SORT_NUMERIC, SORT_ASC);

If i give $index->find() statement alone, there is no memory exhausted
error. I have to get all 'id's and 'biz_type' from index sorted by biz_type.
Don't know where i'm going wrong. Can someone please help me to solve this
problem. This is very urgent :-(

Thanks,
Lekshmi.

--
View this message in context: http://www.nabble.com/Zend-Search-Lucene-%3A-Allowed-Memory-Exhausted-tp18625572p18625572.html
Sent from the Zend MFS mailing list archive at Nabble.com.

没有评论: