mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +00:00
make init() static
This commit is contained in:
parent
a9aa87332d
commit
e28911711b
|
@ -51,7 +51,7 @@ class SeedDMS_Lucene_Indexer {
|
||||||
* Do some initialization
|
* Do some initialization
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
static function init($stopWordsFile='') { /* {{{ */
|
public function init($stopWordsFile='') { /* {{{ */
|
||||||
$analyzer = new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8_CaseInsensitive();
|
$analyzer = new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8_CaseInsensitive();
|
||||||
if($stopWordsFile && file_exists($stopWordsFile)) {
|
if($stopWordsFile && file_exists($stopWordsFile)) {
|
||||||
$stopWordsFilter = new Zend_Search_Lucene_Analysis_TokenFilter_StopWords();
|
$stopWordsFilter = new Zend_Search_Lucene_Analysis_TokenFilter_StopWords();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user