Skip to content
Snippets Groups Projects
Verified Commit ba83fa9d authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #10200 improve fulltext code + clean

parent 2da2ea54
No related branches found
No related tags found
No related merge requests found
......@@ -148,6 +148,8 @@ function indexFullText($pathToFile, $indexFileDirectory, $format, $Id)
*/
function cleanFileContent($fileContent)
{
$func = new functions();
$fileContent = $func->normalize($fileContent);
$fileContent = preg_replace('/[[:cntrl:]]/', ' ', $fileContent);
......@@ -243,8 +245,6 @@ function prepareIndexFullTextTxt($pathToFile, $indexFileDirectory, $Id)
*/
function launchIndexFullText($fileContent, $tempIndexFileDirectory, $Id) // $IndexFileDirectory is replace by tempIndexFileDirectory
{
$func = new functions();
$indexFileDirectory = (string)$tempIndexFileDirectory; // with version 1.12, we need a string, not an XML element
$result = -1;
$luceneErr = false;
......
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