Finding matching documents isn't enough. You need to rank them. Which result is most relevant?
TF-IDF: Term frequency times inverse document frequency. Words appearing often in a document but rarely overall score higher.
BM25: Improved TF-IDF. The modern default.
Beyond text matching, you can boost by recency, popularity, personalization, or business rules. "Boost products with high ratings. Boost sponsored items."