On Thu, Feb 18, 2016 at 4:00 PM, Jon Katz <jkatz@wikimedia.org> wrote:
Can someone on this list point me to where the more-like code sits? Or better, yet would be someone documenting the rules that govern prioritization of suggestions.  

I would like to document the logic for our communities so that we can have an open discussion about what variables and weighting we should use to suggest articles.

"More like" is an Elasticsearch feature; the documentation is here. I'd imagine the source code is way too complicated to give much insight to the casual reader (as Elasticsearch is a large and complex piece of software) but I never looked into the ES codebase so that's just a guess. The configuration we use for morelike queries is here. The wrapper code that fires the ES query is here (but at a glance it doesn't do anything interesting).