We currently integrate redirect targets of our prefix search results into our search results list in order to display more useful results to the user. Redirect targets are inserted into "holes" in the results list in the order they appear in the "redirects" array in the query results. See https://gerrit.wikimedia.org/r/#/c/199285/ for details.
As currently implemented, this can result in odd search result ordering. See, for instance, the results of a search for "obama":
Here's the API result this is based on: http://pastebin.com/ENZf10fx
"I Got a Crush... on Obama" shouldn't be the first result displayed to the user for this query. We should find a better method of ordering our results -- it isn't the case that they're in a sensible order in the "redirect" array in the API results.


