Note that there are some explanatory texts on larger screens.

plurals
  1. POZend_Search_Lucene massive - similar to ZF-5545 issue
    text
    copied!<p><strong>EDIT:</strong></p> <p>Solved with a hack for now. Added at line 473:</p> <pre><code>if (isset($this-&gt;_termsFreqs[$termId][$docId])) { } </code></pre> <hr> <p>This happens only when I'm searching for multiple words, e.g.:</p> <pre><code>+word1 +word2 + word3 </code></pre> <p>I get this massive error:</p> <pre><code>Notice: Undefined offset: 2 in C:\wamp\www\project\library\Zend\Search\Lucene\Search\Query\MultiTerm.php on line 473 Notice: Undefined offset: 2 in C:\wamp\www\project\library\Zend\Search\Lucene\Search\Query\MultiTerm.php on line 473 Notice: Undefined offset: 4 in C:\wamp\www\project\library\Zend\Search\Lucene\Search\Query\MultiTerm.php on line 473 Notice: Undefined offset: 4 in C:\wamp\www\project\library\Zend\Search\Lucene\Search\Query\MultiTerm.php on line 473 Notice: Undefined offset: 6 in C:\wamp\www\project\library\Zend\Search\Lucene\Search\Query\MultiTerm.php on line 473 Notice: Undefined offset: 6 in C:\wamp\www\project\library\Zend\Search\Lucene\Search\Query\MultiTerm.php on line 473 Notice: Undefined offset: 1 in C:\wamp\www\project\library\Zend\Search\Lucene\Search\Query\MultiTerm.php on line 473 Notice: Undefined offset: 1 in C:\wamp\www\project\library\Zend\Search\Lucene\Search\Query\MultiTerm.php on line 473 Notice: Undefined offset: 9 in C:\wamp\www\project\library\Zend\Search\Lucene\Search\Query\MultiTerm.php on line 473 Notice: Undefined offset: 9 in C:\wamp\www\project\library\Zend\Search\Lucene\Search\Query\MultiTerm.php on line 473 </code></pre> <p>Funny thing is that the result set that is returned is correct, so in production I could just turn off the error reporting and it would work like a charm but I don't want to do that.</p> <p>Similar issue is documented here: <a href="http://framework.zend.com/issues/browse/ZF-5545" rel="nofollow noreferrer">http://framework.zend.com/issues/browse/ZF-5545</a></p> <p>And apparently there is no solution.</p> <p>I have also tried using UTF-8 compatible text analyzer (even though I have only Latin 1 characters in the index):</p> <pre><code>Zend_Search_Lucene_Analysis_Analyzer::setDefault(new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8()); </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload