What is tf-idf, if you don’t mind me asking
A word that shows up in the document and no others means it gets a very high score, vs "and" shows up in every document and thus doesn't score well for any
It's what Apache Lucene does which is what ElasticSearch uses under the hood.