This piece of code from my controller:
$index = new Zend_Search_Lucene(Yii::getPathOfAlias('application.' . $this->_indexFiles));
$results = $index->find($term);
$query = Zend_Search_Lucene_Search_QueryParser::parse($term,'utf-8');
Then I tried to highlight my result in view file:
echo $query->highlightMatches($result->method, 'utf-8');
But I got exception in ZendSearch/Lucene/Analysis/Analyzer/Common/Utf8.php(77)
iconv(): Detected an illegal character in input string
Question is what I can do to solve this problem.