---
title: "ML based ranking using Nrtsearch"
description: "Yelp moved ML-based ranking out of a standalone scoring service and into Nrtsearch, its Lucene-based search engine, via an Inference Plugin that extracts features from indexed documents and request parameters and scores them in-process on replica nodes."
url: "https://swe.quest/articles/ml-based-ranking-using-nrtsearch-7c7a1334adf546d5"
canonical: "https://engineeringblog.yelp.com/2026/09/ml-ranking-with-nrtsearch.html"
source: "Yelp Engineering"
published: "2026-09-16"
difficulty: "medium"
kind: "Case study"
reading_minutes: 8
tags: ["search","ml-platform","inference","recommendation-systems","deployment"]
---

# ML based ranking using Nrtsearch

A post on [Yelp Engineering](https://swe.quest/sources/yelp.md), published 2026-09-16, 8 min read, Case study. Original: [https://engineeringblog.yelp.com/2026/09/ml-ranking-with-nrtsearch.html](https://engineeringblog.yelp.com/2026/09/ml-ranking-with-nrtsearch.html)

## Summary

Yelp moved ML-based ranking out of a standalone scoring service and into Nrtsearch, its Lucene-based search engine, via an Inference Plugin that extracts features from indexed documents and request parameters and scores them in-process on replica nodes. The change removes the network transfer and feature-payload overhead that became a bottleneck with large candidate sets. MLeap models such as XGBoost and neural networks are stored in MLflow and loaded at replica bootstrap. Teams either implement a Java scorer interface or use a generic scorer that defines features with Lucene expressions. Models are hot-swapped node by node via Jenkins without restarts, scorer changes go through canary and rolling restarts, and Prometheus metrics track model latency and errors.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Search](https://swe.quest/tags/search.md) (Backend & APIs)
- [ML platforms](https://swe.quest/tags/ml-platform.md) (AI & ML)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Recommendations & ranking](https://swe.quest/tags/recommendation-systems.md) (AI & ML)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)

## Prerequisites

- Lucene and BM25 scoring
- learning-to-rank basics
- search reranking pipelines ([easy posts on Search](https://swe.quest/tags/search.md?difficulty=easy))

## Keywords

Nrtsearch, Lucene, MLeap, MLflow, XGBoost, Prometheus, Jenkins

## Related posts

- [How Vinted Serves Personalised Search Autocomplete](https://swe.quest/articles/how-vinted-serves-personalised-search-autocomplete-60df7b0a636c3d2b.md): Vinted Engineering · 2026-04-22 · Medium · 22 min read · Search, Recommendations & ranking, Performance engineering, System design
  Vinted's autocomplete service runs on Vespa and serves 4,700 queries per second at 31 ms P99 over a pool of 125 million suggestions across 50+ country-language markets.
- [Recommend API](https://swe.quest/articles/recommend-api-7ecced73a1a24709.md): Slack Engineering · 2022-09-06 · Medium · 10 min read · Recommendations & ranking, ML platforms, Privacy, System design
  Slack built a unified Recommend API so product teams can bootstrap new ML recommenders from reusable components (fetchers, filters, feature augmentation via a Feature Store, model scoring and rerankers) instead of building bespoke systems.
- [Scaling the Instagram Explore recommendations system](https://swe.quest/articles/scaling-the-instagram-explore-recommendations-system-eef9723f73cee8af.md): Meta Engineering · 2023-08-09 · Medium · 9 min read · Recommendations & ranking, Machine learning, Caching, Scaling, Vector search
  Instagram Explore uses a four-stage funnel of retrieval, first-stage ranking, second-stage ranking and final reranking, built around caching and pre-computation so heavier models can be used at every stage.
- [How Etsy Uses LLMs to Improve Search Relevance](https://swe.quest/articles/how-etsy-uses-llms-to-improve-search-relevance-3911d99788b5bd04.md): Etsy Code as Craft · 2026-01-16 · Medium · 10 min read · Search, LLMs, Evaluation, Model training, E-commerce
  Etsy built an LLM-powered semantic relevance framework that complements engagement signals, which favor popular listings, with judgments of how well listings match query intent across three classes: relevant, partially relevant and irrelevant.
- [Building Smarter Search Products: 3 Steps for Evaluating Search Algorithms](https://swe.quest/articles/building-smarter-search-products-3-steps-for-evaluating-search-algorithms-f267f58da4febc3b.md): Shopify Engineering · 2021-04-01 · Medium · 12 min read · Search, Evaluation, Data pipelines, Queues & messaging
  Shopify's Help Center search team evaluates new ranking algorithms in three steps: collect ground truth from Kafka interaction events and expert-annotated relevance ratings, score variants offline with MAP and NDCG over thousands of historical queries, then run online A/B tests on metrics like click-through rate, average clicked rank, abandonment and support deflection.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
