Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.7.1, 1.7.2, 1.9.2
-
Fix Version/s: 1.10.8
-
Component/s: Zend_Search_Lucene
-
Labels:None
Description
When doing a search using boolean operators and more than one search terms:
+PHP +Zend
Or
PHP AND Zend
A PHP notice is thrown: PHP Notice: Undefined offset: 2511 in /path/to/Zend/Search/Lucene/Search/Query/MultiTerm.php on line 467
Please note that the number 2511 changes for each "hit". The first notice has the lowest number, and the last notice the highest number.
I've not been able to spot any problems relating to this notice, other than the fact that it's quite annoying to look at in the errorlog.
I just received same error. It looks like it's a problem with my data.
Notice: Undefined offset: 39996 in Z:\Search\Lucene\Search\Query\MultiTerm.php on line 467
My table has 50 rows, some row's data (because of encoding and hyphenations) seem to have characters which aren't representable or convertible to any latin characters, I'm not sure if that is a prob, but anyways,
Here is an example of my search, the # is actually a Danish character, O with a slash thru it, but because of encoding probs, shows up as >> :
Koffe S#rensen A
In search/query/Boolean.php I did a print_r($this -> _subqueries) and here are some highlights:
-----------------------------------------------------
-----------------------------------------------------
[_terms:private] => Array
(
[0] => Zend_Search_Lucene_Index_Term Object
(
[field] => name
[text] => rensen
)
[1] => Zend_Search_Lucene_Index_Term Object
(
[field] => name
[text] => s
)
[2] => Zend_Search_Lucene_Index_Term Object
(
[field] => name
[text] => a
)
)
-----------------------------------------------------
-----------------------------------------------------
[_termInfoCache:private] => Array
(
[name�s] =>
[name�rensen] =>
[name�koffe] =>
[name�a] => Zend_Search_Lucene_Index_TermInfo Object
(
[docFreq] => 4
[freqPointer] => 0
[proxPointer] => 0
[skipOffset] => 0
[indexPointer] =>
)
)
-----------------------------------------------------
-----------------------------------------------------
I don't get this error when I do the same search with data from the same table that is all normal latin chars.