Split from bug 51436, Original comment was:
"Also typing a word only shows template names starting with that word, not
containing it, which is a weird search behaviour.
If I type "book", template "Cite book" is not shown, which limits the search
functionality to be useful only for people who already know template names
(i.e. those who don't need it)."
A further relevant comment was:
"This is asking for VisualEditor ... to use an entirely different (and slower) part of MediaWiki's search infrastructure so we can do in-string searching rather than left-string completion."