-- Search Time
If you crawl https://www.wikipedia.org/, it will show up under all languages' search results. This is because the page declares its language as lang:mul and so Yioop will index it under all languages. If you do a search with no:guess as a keyword, Yioop won't try to guess the language. The code where Yioop injects the language guess into the query is in PhraseModel::guessSemantics. Deleting the lines:
if (!preg_match("/media\:image|lang\:/", $phrase)) {
$phrase .= " " . "lang:" . $main_tag . " ";
}
would get rid of it.
Best,
Chris
(
Edited: 2020-01-14)
If you crawl https://www.wikipedia.org/, it will show up under all languages' search results. This is because the page declares its language as lang:mul and so Yioop will index it under all languages. If you do a search with no:guess as a keyword, Yioop won't try to guess the language. The code where Yioop injects the language guess into the query is in PhraseModel::guessSemantics. Deleting the lines:
if (!preg_match("/media\:image|lang\:/", $phrase)) {
$phrase .= " " . "lang:" . $main_tag . " ";
}
would get rid of it.
Best,
Chris