Closed ahoek closed 4 years ago
The query string that is created puts quotes around the wildcard and fuzzy keywords, so only the exact keyword matches are found.
$queryString .= '+("' . self::escapeDoubleQuotes($queryValue) . '" OR ' . '"' . preg_replace('/([^\pL\s\d])/u', '?', $queryValue) . '*" OR ' . '"' . preg_replace('/([^\pL\s\d])/u', '', $queryValue) . '~") ';
When I remove these quotes, the search works as expected.
$queryString .= '+("' . self::escapeDoubleQuotes($queryValue) . '" OR ' . '' . preg_replace('/([^\pL\s\d])/u', '?', $queryValue) . '* OR ' . '' . preg_replace('/([^\pL\s\d])/u', '', $queryValue) . '~) ';
fixed by #37
The query string that is created puts quotes around the wildcard and fuzzy keywords, so only the exact keyword matches are found.
When I remove these quotes, the search works as expected.