ZF-2456: Fatal error: Class 'Zend_Search_Lucene_Analysis_Analyzer_Common' not found
Description
When I'm using Zend_Search_Lucene with the stopwords filter, I did run on a fatal error that the Zend_Search_Lucene_Analysis_Analyzer_Common couldn't be found.
When I was looking to this error, it seemed that Zend_Search_Lucene_Analysis_Analyzer_Common requires some other classes that require Zend_Search_Lucene_Analysis_Analyzer_Common before it was declared.
I am using the last version from trunk (r7513). I will also build a patch to fix this problem.
Comments
Posted by Pieter Kokx (kokx) on 2008-01-19T09:19:39.000+0000
This patch fixes the problem, and removes the unnecessary require statements from Zend/Search/Lucene/Analysis/Analyzer.php, so there will be no fatal error.
Posted by Pieter Kokx (kokx) on 2008-01-19T09:34:02.000+0000
This bug does also affect version 1.0.3.
Posted by Alexander Veremyev (alexander) on 2008-01-30T15:56:36.000+0000
Just include 'Zend/Search/Lucene.php' or 'Zend/Search/Lucene/Analysis/Analyzer.php' into your php file which implements your own analyzer (instead of 'Zend/Search/Lucene/Analysis/Analyzer/Common.php').
Zend_Search_Lucene_Analyzer package has some cyclic references between files and needs them to be included in a special order. This order is defined in the 'Analyzer.php'. There are no other files which are intended to be included directly into your code.
Use the example:
Posted by Wil Sinclair (wil) on 2008-12-17T13:41:36.000+0000
Bookkeeping. Closing and assigning all old unassigned issues. The only unassigned issues should be new and unreviewed.