BM25 is a ranking function for lexical search: it scores a document according to the frequency of the query words, their rarity in the corpus, and the length of the text. It excels on exact terms (names, codes) where semantic search is less reliable.
Example
A query on the code "ERR-4012" retrieves the texts that contain exactly that code.