make init() static

This commit is contained in:
Uwe Steinmann 2023-01-05 08:01:48 +01:00
parent a9aa87332d
commit e28911711b

View File

@ -51,7 +51,7 @@ class SeedDMS_Lucene_Indexer {
* Do some initialization
*
*/
static function init($stopWordsFile='') { /* {{{ */
public function init($stopWordsFile='') { /* {{{ */
$analyzer = new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8_CaseInsensitive();
if($stopWordsFile && file_exists($stopWordsFile)) {
$stopWordsFilter = new Zend_Search_Lucene_Analysis_TokenFilter_StopWords();