Occurs on Russian Wikipedia, doesn't occur on English Wikipedia.
If the search query contains `prefix:` near the end and some word, which is by accident used as a namespace name, near the beginning, the search is performed not according to the namespacand a colon sign `:` anywhere after `prefix:`it, but according to the namespace near the beginningthe search is performed in that namespace.
For instance,
//Query:// `{}{}{}шАбЛоН{}{}{} prefix:Википедия:`У холмов есть глаза: Начало` (the Russian name of the graphic novel) (https://ru.wikipedia.org/w/index.php?title=Служебная:Поиск&profile=default&fulltext=Search&search={}{}{}шАбЛоН{}{}{}+prefix:Википедия:&ns4=1У+холмов+есть+глаза:+Начало&searchToken=6z76x24rki7rse83zlfla56ez7v64zbxyubf5yyw9dan118cma)
//Expected result:// Search is performed in the "Википедия" (Wikipedia) namespacemain namespace, with the possible outcome of the article about the novel being found.
//Actual result:// Search is performed in the "Шаблон" (Template"Участник" (User) namespace, "Википедия" is used as a search item insteadace.
This query is analogous to `{}{}{}tEmPlAtE{}{}{} prefix:Wikipedia:` on English Wikipedia (with the exception this bug doesn't occur there).e obvious reason for this is that the word "у", which is a preposition in Russian, is an alias for the "Участник" namespace. So, MiXeD cAsE is used to demonstrate that this bug is case-insensitive.it's like if you searched "X-Men: Days of Future Past" on English Wikipedia, {}{}{} is used to demonstrate that the position of theif "x" was a namespace name is irrelevantalias.
The position of the namespace name in the query is irrelevant: it can be in the middle as well as in the beginning.
This bug can be quite painful, as it actually forbids entering several frequently used words as search items, without user remotely having a clue as to what is going on. It is also a huge headache when trying to find something with `prefix:` keyword, as a colon becomes present and the namespace names such as "Википедия" (Wikipedia) are frequently used in project talks (say, `шаблон prefix:Википедия:` searches in "Шаблон" (Template) namespace instead of "Википедия").
The same is true for the suggestions bar: if one types "У холмов есть глаза:", without user remotely having a clue as to what is going onhe gets pages in the "Участник" namespace.