Hello all,
query throws an parse exception when we try to higlight keywords:
Karl Lagerfeld Les Parfums Matières Fleur d’Iris
The problem is single quote, when replaced with empty string query works OK.
Using highlight in query
'highlight' =>
array (
'fields' =>
array (
0 => 'title',
1 => 'short_desc',
2 => 'long_desc',
),
'no_match_size' => 0,
'before_match' => '<span class="-match">',
'after_match' => '</span>',
'around' => 4,
'use_boundaries' => true,
'use_regex' => true,
'highlight_query' =>
array (
'query_string' =>
array (
'query' => '*Karl* | *Lagerfeld* | *Les* | *Parfums* | *Matières* | *Fleur* | *d'Iris*',
),
),
)
Tested various escaping with no success, like: *d\'Iris* or *d\\'Iris* or *d''Iris*
How can i properly escape this keyword to highlight it?
Thanks.