ZF-8284: Lucene MultiSearcher raises Fatal Error when calling numDocs() or count()
Description
Zend_Search_Lucene_MultiSearcher::numDocs() and ::count() perform method calls on array due to a mistyped variable name.
Index: library/Zend/Search/Lucene/MultiSearcher.php
===================================================================
--- library/Zend/Search/Lucene/MultiSearcher.php (Revision 18929)
+++ library/Zend/Search/Lucene/MultiSearcher.php (Arbeitskopie)
@@ -144,7 +144,7 @@
$count = 0;
foreach ($this->_indices as $index) {
- $count += $this->_indices->count();
+ $count += $index->count();
}
return $count;
@@ -172,7 +172,7 @@
$docs = 0;
foreach ($this->_indices as $index) {
- $docs += $this->_indices->numDocs();
+ $docs += $index->numDocs();
}
return $docs;
Comments
Posted by Ramon Henrique Ornelas (ramon) on 2010-09-18T11:55:41.000+0000
Fixed with r22967.