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 namespace after `prefix:`, but according to the namespace near the beginning.
For instance,
//Query:// `{}{}{}шАбЛоН{}{}{} prefix:Википедия:` (https://ru.wikipedia.org/w/index.php?title=Служебная:Поиск&profile=default&fulltext=Search&search={}{}{}шАбЛоН{}{}{}+prefix:Википедия:&ns4=1&searchToken=6z76x24rki7rse83zlfla56ez)
//Expected result:// Search is performed in the "Википедия" (Wikipedia) namespace.
//Actual result:// Search is performed in the "Шаблон" (Template) namespace, "Википедия" is used as a search item instead.
This query is analogous to `{}{}{}tEmPlAtE{}{}{} prefix:Wikipedia:` on English Wikipedia (with the exception this bug doesn't occur there). MiXeD cAsE is used to demonstrate that this bug is case-sensitive. {}{}{} used to demonstrate that the position of the namespace name is irrelevant.
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.