Issues

ZF-3931: Problem with search for a phrase

Issue Type: Bug Created: 2008-08-12T09:50:14.000+0000 Last Updated: 2011-08-26T14:18:53.000+0000 Status: Open Fix version(s): Reporter: Fernando de (fernandolkf) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Search_Lucene

  • zf-crteam-padraic
  • zf-crteam-priority

Related issues: Attachments:

Description

Hi, i got a problem again I'm trying to search for a phrase using Zend_Search_Lucene Its like, i put a phrase and then search for it in severals documments But when i trying to find a long phrase (like more them 8 words) i got memory problem:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in /var/www/html/bdnupill/zend/Zend/Search/Lucene/Index/SegmentInfo.php on line 782

Here's the code of the search for phrase:

$words = explode(" ",$textBusca);

$query1 = new Zend_Search_Lucene_Search_Query_Phrase();

for($w=0;$w<count($words);$w++){ $query1->addTerm(new Zend_Search_Lucene_Index_Term($words[$w])); }

$hits1 = $index->find($query1);

any ideas?

another thing: Zend dont support pontuation? Like dot's and commas? Cause i have to take them off before make a phrase search

Comments

Posted by Shaun Farrell (farrelley) on 2011-08-26T14:18:53.000+0000

Please attach code to reproduce.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts