Ok, I finally found the issue with my text, it’s because my OCR layer contains some characters that have been translater to <. If I use the default text formater, strip_tags function will remove everything that is after the <.
What I have done so far is to create a custom in
* ValueFormatter to escape all special characters from text.
class EscapeSpecialCharsText implements ValueFormatterInterface
public function getLabel()
return 'Escape special chars text'; // @translate
public function format($value)
Then this formatter is registered by adding to
config/module.config.php in the
searchsolr_value_formatters section the following entry:
'escape_special_text' => ValueFormatter\EscapeSpecialCharsText::class,
That being done, I have applied this filter to my field in
/admin/search-manager/solr/core/1/map/items and all my content is indexed.
That won’t fix everything, because I might have some text that is not relevant in the content, but as long as it is for searching, I assume it’s fine.