Last modified: 2013-09-26 15:20:41 UTC
Searching for "popular Culatur" yields a suggestion (did you mean:) but doesn't correctly bold the corrected word. URL: http://en.wikipedia.beta.wmflabs.org/w/index.php?title=Special%3ASearch&profile=default&search=popular+Culatur&fulltext=Search
I have a question out to the elasticsearch mailing lists for this topic.
I have a feature request in with Elasticsearch to make this more efficient but that is in its early stages. If we can live without this for a month we should just wait until that has made it through their process. Otherwise we can accomplish this with either one off space-splitting based code or by making calls to the analyze endpoint in elasticsearch for the original terms and the suggestion, then correlate them.
This is currently waiting on Elasticsearch 0.90.4. Like I mentioned before we can work around not having the feature but it should be available for easy consumption in a month or so.
Change 85206 had a related patch set uploaded by Manybubbles: Highlight changed words in suggestions. https://gerrit.wikimedia.org/r/85206
Change 85207 had a related patch set uploaded by Manybubbles: Tests for highlight changed words in suggestions. https://gerrit.wikimedia.org/r/85207
Change 85206 merged by jenkins-bot: Highlight changed words in suggestions. https://gerrit.wikimedia.org/r/85206
Change 85207 merged by jenkins-bot: Tests for highlight changed words in suggestions. https://gerrit.wikimedia.org/r/85207
Verified on mediawiki.org.