[SearchEngine] Integrate unicode service provider

This commit is contained in:
Romain Neutron
2012-10-30 14:11:51 +01:00
parent eec1fe1cf1
commit 95dff0e3c7
6 changed files with 10 additions and 21 deletions

View File

@@ -352,8 +352,6 @@ class caption_Field_Value implements cache_cacheableInterface
return $value;
}
$unicode = new unicode();
$DOM_branchs = $XPATH_thesaurus->query($tbranch);
$fvalue = $value;
@@ -361,8 +359,8 @@ class caption_Field_Value implements cache_cacheableInterface
$cleanvalue = str_replace(array("<em>", "</em>", "'"), array("", "", "&apos;"), $fvalue);
list($term_noacc, $context_noacc) = $this->splitTermAndContext($cleanvalue);
$term_noacc = $unicode->remove_indexer_chars($term_noacc);
$context_noacc = $unicode->remove_indexer_chars($context_noacc);
$term_noacc = $this->app['unicode']->remove_indexer_chars($term_noacc);
$context_noacc = $this->app['unicode']->remove_indexer_chars($context_noacc);
if ($context_noacc) {
$q = "//sy[@w='" . $term_noacc . "' and @k='" . $context_noacc . "']";
} else {