LuceneUtf8Analyzer.php
1 <?php
2 /**
3  * wCMF - wemove Content Management Framework
4  * Copyright (C) 2005-2020 wemove digital solutions GmbH
5  *
6  * Licensed under the terms of the MIT License.
7  *
8  * See the LICENSE file distributed with this work for
9  * additional information.
10  */
11 namespace wcmf\lib\search\impl;
12 
13 use ZendSearch\Lucene\Analysis\Analyzer\Common\Utf8Num\CaseInsensitive;
14 
15 class LuceneUtf8Analyzer extends CaseInsensitive {
16  /**
17  * Override method to make sure we are using utf-8
18  */
19  public function setInput($data, $encoding = '') {
20  parent::setInput($data, 'UTF-8');
21  }
22 }
23 ?>
setInput($data, $encoding='')
Override method to make sure we are using utf-8.