Do some search with Smart Search while debugging with Xdebug from Vscode.
No exception.
Get exception inside StemmerFactory.php
:
Wamania\Snowball\NotFoundException: Stemmer not found for
inside the following function:
/**
* @throws NotFoundException
*/
public static function create(string $code): Stemmer
{
$code = UTF8::strtolower($code);
foreach (self::LANGS as $classname => $isoCodes) {
if (in_array($code, $isoCodes)) {
return new $classname;
}
}
throw new NotFoundException(sprintf('Stemmer not found for %', $code));
}
Joomla Beta 3 from here :
Tested with a clean install.
Labels |
Added:
?
|
Title |
|
English (United Kingdom), the only one installed.
Confirmed
i suspect the cause is that $code
is equal *
public static function create(string $code): Stemmer
Labels |
Added:
Information Required
|
Are you testing with the nightly builds?
Just tested with Joomla_4.0.0-beta6-dev-Development-Update_Package.zip from here:
@alikon is right in a multilingual site:
If you var_dump $code
public static function create(string $code): Stemmer
{
$code = UTF8::strtolower($code);
var_dump($code);
foreach (self::LANGS as $classname => $isoCodes) {
if (in_array($code, $isoCodes)) {
return new $classname;
}
}
throw new NotFoundException(sprintf('Stemmer not found for %s', $code));
}
You get when en-GB is the site language (would be *, fr, fr for French):
`string(1) "*" string(2) "en" string(2) "en" `
If you work in a monolanguage site, then you may have to set Smart Search Options to your language or Default Site Language.
Do you still get the Exception in that case?
I do not get any suggestions when typing in the search field.
Could someone confirm?
Labels |
Added:
?
|
Labels |
Removed:
Information Required
|
"Information Required" label removed since the requested information if it still happens with current 4.0 has been provided.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-12-28 04:59:07 |
Closed_By | ⇒ | bembelimen |
The problem is not the exception. That is caught and the indexer still runs. So no need to fix here anything, it's expected behaviour that there is one when the current language has no stemmer.
But the thing is, that if "*" is the current language, then it's not translated in e.g. "en-GB" (= the current language on the site).
#31795 tries to fix it and reduces the exception numbers.
Labels |
Removed:
?
|
Status | Closed | ⇒ | New |
Closed_Date | 2020-12-28 04:59:07 | ⇒ | |
Closed_By | bembelimen | ⇒ | |
Labels |
Added:
No Code Attached Yet
Removed: ? |
Labels |
Added:
bug
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-02-27 21:26:18 |
Closed_By | ⇒ | Hackwar |
What language is your site?