Last modified: 2013-09-26 15:09:50 UTC
When there isn't much data in the index result sorting can be wildly wrong. The simplest way to fix this is to only use a single shard for really small wikis. We could also fix it by adding an extra query parameter to searches for small wikis. Read more here: http://www.elasticsearch.org/blog/understanding-query-then-fetch-vs-dfs-query-then-fetch/
Note that this shouldn't be a problem in production because there will be "enough" data but it makes tests fail spuriously.
Assigning high because it causes my tests to fail when they shouldn't, making me waste time.
https://gerrit.wikimedia.org/r/#/c/79791/
Change 79791 had a related patch set uploaded by Demon: Default to more accurate but slower search_type. https://gerrit.wikimedia.org/r/79791
Change 79791 merged by jenkins-bot: Default to more accurate but slower search_type. https://gerrit.wikimedia.org/r/79791
Live and working.