There's a textbook at https://nlp.stanford.edu/IR-book/information-retrieval-book.... .
These should be enough hints so you can find something closer to what you are looking for.