mytakedotorg / mtdo

The code and tooling which runs mytake.org
https://mytake.org
GNU Affero General Public License v3.0
16 stars 3 forks source link

Improve ngram deployment, and various search fixes #422

Closed nedtwigg closed 4 years ago

nedtwigg commented 4 years ago

The original goal was to improve the ngram search deployment. After adding new facts in 2020, the number of search results for "election" in previous years decreased, which doesn't make any sense. Turns out that lucene was setup to return at most 100 results, and if there were more than that it just picked a random 100. Luckily, election has 200+ results, so it triggered this bug.

Basically, it turns out that our precached searches are a nice way to test our whole search infrastructure, so I took the opportunity to also fix some long-outstanding search improvements: