BM25 improves on TF-IDF with saturation and length normalization. Term frequency saturates (diminishing returns after certain count). Longer documents don't automatically rank higher.
Parameters (term saturation) and (length normalization) are tunable. Elasticsearch defaults: , . BM25 is the default similarity algorithm in modern search engines.