2020-01-14

Search Time.

Hello, for different languages (meaning the languages of the yioop system), different answers are given for the same search query. How can I make all the answers appear in all languages?
Hello, for different languages (meaning the languages of the yioop system), different answers are given for the same search query. How can I make all the answers appear in all languages?

-- 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

-- Search Time
Its work Fine! Thanks!
Its work Fine! Thanks!
X