What is bm25
Last updated: April 1, 2026
Key Facts
- BM25 stands for 'Best Match 25' and is based on the Probabilistic Relevance Framework
- Developed in the 1990s and became standard in many search engines and information retrieval systems
- Considers document length, term frequency, and term rarity when calculating relevance scores
- Widely used by search engines, Elasticsearch, Lucene, and other information retrieval technologies
- More sophisticated than simple term frequency matching, providing better relevance rankings for complex queries
What is BM25?
BM25 is a ranking function used in information retrieval and search engines to assess the relevance of documents to user search queries. The acronym stands for 'Best Match 25,' referring to the 25th iteration of algorithms developed within the Probabilistic Relevance Framework. BM25 has become one of the most widely adopted ranking algorithms in the search industry due to its effectiveness in producing relevant search results.
How BM25 Works
BM25 calculates relevance scores by analyzing multiple factors:
- Term Frequency: How often a search term appears in a document
- Inverse Document Frequency: How rare or common the search term is across all documents
- Document Length Normalization: Adjusting scores based on document length to prevent bias toward longer documents
- Field-Specific Scoring: Weighing terms differently based on where they appear (title vs. body text)
Historical Development
BM25 evolved from probabilistic information retrieval research conducted in the 1990s. Researchers at City University London developed successive iterations of the algorithm, with BM25 representing a mature, effective version that balanced accuracy with computational efficiency. Its success led to widespread adoption across the search and information retrieval industry.
Applications and Adoption
BM25 is the default ranking function in major search and retrieval technologies including Elasticsearch, Apache Lucene, Solr, and many other enterprise search platforms. Web search engines, internal company search systems, and research databases frequently employ BM25 or variations of the algorithm to rank documents and return relevant results to users.
Advantages Over Simpler Methods
Unlike basic keyword matching that treats all terms equally, BM25 provides more nuanced relevance scoring. It prevents manipulation through term repetition, accounts for document structure, and adapts to query complexity. This makes BM25 superior for returning highly relevant results even with complex, multi-word queries.
Related Questions
Why is BM25 better than simple keyword matching?
BM25 considers term frequency, inverse document frequency, and document length normalization, providing more nuanced relevance scores that better match user intent compared to simple keyword counting.
What search engines use BM25?
BM25 is used in Elasticsearch, Apache Lucene, Solr, and many enterprise search platforms. Many major search engines and information retrieval systems employ BM25 or similar probabilistic algorithms.
Can BM25 be customized?
Yes, BM25 includes tunable parameters (k1 and b parameters) that allow customization for different types of documents and search scenarios to optimize relevance results.
More What Is in Daily Life
- What Is a Credit ScoreA credit score is a three-digit number, typically ranging from 300 to 850, that represents your cred…
- What Is CD rates make no sense based on length of time invested. Explain like I'm 5CD (Certificate of Deposit) rates often don't increase with longer lock-up times the way people expe…
- What is a phdA PhD (Doctor of Philosophy) is a doctoral degree earned after completing advanced academic research…
- What is a polymathA polymath is a person with deep knowledge and expertise across multiple different fields or academi…
- What is aaveAAVE stands for African American Vernacular English, a dialect with distinct grammar, pronunciation,…
- What is aarch64ARMv8-A (commonly called ARM64 or AArch64) is a 64-bit processor architecture developed by ARM Holdi…
- What is about menTopics and discussions about men typically encompass masculinity, male identity, gender roles, men's…
- What is abiturAbitur is the German academic qualification awarded upon completion of secondary education, typicall…
- What is abrosexualAbrosexual is a sexual orientation identity where a person's sexual attraction changes or fluctuates…
- What is abgABG is an Indonesian acronym standing for 'Anak Baru Gede,' which refers to adolescent girls or teen…
- What is aaaAAA batteries are a standard cylindrical battery size measuring 10.5mm in diameter and 44.5mm in len…
- What is aacAAC (Advanced Audio Codec) is a digital audio compression format that provides better sound quality …
- What is aaa gameAAA games are high-budget video games developed by large studios with budgets typically exceeding $1…
- What is a proxyA proxy is a server that acts as an intermediary between your device and the internet, forwarding yo…
- What is ableismAbleism is discrimination and prejudice against people with disabilities based on the assumption tha…
- What is absAbs, short for abdominal muscles, are the muscles in your core that flex your spine and stabilize yo…
- What is abortionAbortion is a medical procedure that ends pregnancy by removing the fetus before viability. It can b…
- What is accutaneAccutane (isotretinoin) is a powerful prescription medication derived from vitamin A used to treat s…
- What is acetaminophenAcetaminophen, also known as paracetamol, is an over-the-counter pain reliever and fever reducer use…
- What is acidAcid is a chemical substance that donates protons (hydrogen ions) to other substances, characterized…
Also in Daily Life
- How To Save Money
- Why are so many white supremacist and right wings grifters not white
- Does "I'm 20 out" mean youre 20 minutes away from where you left, or youre 20 minutes away from your destination
- Why are so many men convinced that they are ugly
- What does awol mean
- What does asl mean
- What does ad mean
- What does asap mean
- What does apex mean
- What does asmr stand for
- What does atp mean
- What causes autism
- What does abg mean
- What does am and pm mean
- What does a fox sound like
More "What Is" Questions
Trending on WhatAnswer
Browse by Topic
Browse by Question Type
Sources
- Wikipedia - Okapi BM25 CC-BY-SA-4.0
- Elasticsearch BM25 Documentation Copyright Elastic