Skip to content
Snippets Groups Projects
Commit ff8a6139 authored by Quentin Ribac's avatar Quentin Ribac
Browse files

FIX #18657 TIME 0:05 fulltext uses utf8 when indexing

parent f530f55f
No related branches found
No related tags found
No related merge requests found
...@@ -103,7 +103,7 @@ class FullTextController ...@@ -103,7 +103,7 @@ class FullTextController
$doc = new \Zend_Search_Lucene_Document(); $doc = new \Zend_Search_Lucene_Document();
$doc->addField(\Zend_Search_Lucene_Field::UnIndexed('Id', (integer)$args['resId'])); $doc->addField(\Zend_Search_Lucene_Field::UnIndexed('Id', (integer)$args['resId']));
$doc->addField(\Zend_Search_Lucene_Field::UnStored('contents', $fileContent)); $doc->addField(\Zend_Search_Lucene_Field::UnStored('contents', $fileContent, 'utf-8'));
$index->addDocument($doc); $index->addDocument($doc);
$index->commit(); $index->commit();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment