Home Insights Advanced Solr/Lucene topics: High-performance nested search for e-commerce applications

Advanced Solr/Lucene topics: High-performance nested search for e-commerce applications

Advanced Solr/Lucene topics: high-performance nested search for e-commerce applications

Solr/Lucene has emerged over the last few years as a leading open source search platform for large-scale e-commerce search engines. Systems based on Solr power major sites including Macy’s, Kohl’s, Walmart, Etsy, and many others. An increasing number of tier-1 digital retailers are building their next-generation search and catalog navigation platforms using the Solr technology stack, often replacing commercial engines such as Oracle Endeca, FAST or Mercado.

Grid Dynamics has been one of the early adopters of Solr for large-scale, complex e-commerce catalogs with millions of SKUs, providing a highly optimized, omni-channel, “Black Friday-ready” experience for some of the world’s largest retailers.

Our engineers have made numerous contributions to Solr and Lucene. They’ve spoken at technical conferences and published many technical blogs that help Solr developers. One specific area of extensive research and innovation where our team shines is dealing with nested document structures, which are very useful when modeling complex e-commerce catalogs. The Nested Search and Faceting approach solves many of the performance and scalability challenges encountered when building large scale, contextualized, omnichannel catalogs. It’s especially useful for effective and scalable processing of relationships (such as “chair is a part of furniture set”) and their attributes in a search system, optimized to deal with documents which are completely independent from one another. 

  1. We were early adopters of, and actively advocated the Block Join (also known as index-time join) approach to implementing nested search. This approach is supported in Lucene with Block Join Query (BJQ) and in Solr with the Block Join Facet component, which we contributed to the Solr/Lucene codebase.

    For a more complete introduction to this topic, please see the joint talk at Lucene Revolution 2015 given by Eugene Steinberg of Grid Dynamics and Peter Gazaryan of Macys.com. Both slides and a video are online.

    In this series of blog posts on Nested Search for E-commerce, we are republishing a collection of revised and updated blog posts written over the last 2 years. These posts are specifically targeted at the developers of the search engines, so the information is presented in rather technical form, and assumes good familiarity with Solr/Lucene framework. Specifically, these blog posts will cover the following aspects of BJQ design:

    Post 1: Introduction to Block Join Faceting
    Post 2: High-Performance Join in Solr with BlockJoinQuery
    Post 3: How to Implement Block Join Faceting in Solr/Lucene
    Post 4:  Using Block Join to Improve Search Efficiency with Nested Documents in Solr
    Post 5: The Segmented Filter Cache and Block join Query Parser in Solr
    Post 6: Searching Grandchildren and Siblings with Solr Block Join
    Post 7:  A Frustrating Personal Experience with Unfaceted Search

    If you have questions about any of the topics covered in this series of posts or more generally related to the design and tuning of search engines, please drop us a line and one of our Search Architects will follow up promptly.

Authors

Eugene Steinberg

Eugene Steinberg

Chief Technology Officer, Lead of Search and Deep Learning Practice

Dr. Eugene Steinberg serves as Chief Technology Officer (CTO) of Grid Dynamics. A founding engineer and most recently, Distinguished Technical Fellow, Dr. Steinberg brings over two decades of expertise in artificial intelligence, machine learning, information retrieval, and scalable distributed systems to his leadership role.
At Grid Dynamics, he has been instrumental in conceiving and scaling the company’s technology practices, spearheading mission-critical transformation programs for Fortune 1000 clients while pioneering breakthrough solutions in AI, search, and cloud-native platform development. His vision and hands-on leadership have established Grid Dynamics as a recognized innovator in digital transformation services.
Dr. Steinberg oversees the company’s technology strategy, practice development, and innovation initiatives. His expertise spans enterprise AI applications, cloud platforms, data engineering, and modern application development—core capabilities that drive the delivery of high-impact solutions for global enterprises.
Prior to becoming CTO, he built the company’s search and digital commerce practices from the ground up and pioneered many retail AI solutions, including visual search and conversational commerce. He joined Grid Dynamics in 2006 as its first employee and founding engineer, establishing core technology foundations while delivering transformative projects for clients including PayPal, eBay, Google, Macy’s, Home Depot, and Nike.

Dr. Steinberg holds a Ph.D. in Mathematics and Mechanics from Saratov State University, where he focused on numerical analysis of nonlinear dynamic systems.


Tags

You might also like

Fashion shopper using a smartphone beside a laptop, representing AI discoverability and agentic commerce readiness.
Article
7-step AI discoverability checklist to help LLMs find, understand, and recommend your content
Article 7-step AI discoverability checklist to help LLMs find, understand, and recommend your content

For the past two decades, digital brand visibility meant ranking on search engines. The higher your page appeared, the more likely customers were to find it. Today, search is shifting from lists of links to contextual conversations and full agentic commerce journeys. People now ask ChatGPT, Gemi...

Abstract commerce scene with workers, carts, and parcels visualizing orchestrated agentic shopping journeys.
Article
The trust architecture: Why most agentic commerce pilots fail, and what separates the ones that don’t
Article The trust architecture: Why most agentic commerce pilots fail, and what separates the ones that don’t

The gap between a working demo and a system that survives real customers is the most expensive distance in the enterprise right now. It's also widening. Boards are writing checks for agentic commerce based on demos that won't last a week against actual shoppers. The receipts are already in. Air...

A transparent, light-blue concept sports car showcasing its complex, gold-toned internal mechanics.
Article
Shift auto parts search into high gear with Google Cloud and Grid Dynamics
Article Shift auto parts search into high gear with Google Cloud and Grid Dynamics

Auto parts e-commerce is booming, but complexity risks revenue. Think fitment accuracy, interchange precision, catalog and PDP content standardization, and omnichannel expectations. One misfit leads to a lost sale, and can even jeopardize customer safety.​  Auto parts search is in a dif...

Isometric visualization of AI-powered data flows connecting enterprise product catalog systems
Article
Six reasons your product catalog needs a makeover in 2026—and how to get it right
Article Six reasons your product catalog needs a makeover in 2026—and how to get it right

Once upon a time, your enterprise product catalog was a backend concern. A necessary system of record. Something teams updated quietly while the real “experience” work happened elsewhere. Today, that separation no longer exists. Research shows that 87% of shoppers rate product data as “extremely...

Distributed computing infrastructure with interconnected blocks and data streams in red, green, and amber, representing the hybrid deep learning architecture connecting cloud-based Azure Databricks with on-premises NVIDIA DGX systems for deep learning workloads.
Article
Hybrid deep learning with Azure Databricks and on-prem NVIDIA DGX
Article Hybrid deep learning with Azure Databricks and on-prem NVIDIA DGX

Modern enterprises increasingly rely on deep learning to power mission-critical workflows such as global demand forecasting, inventory optimization, supply chain prediction, video-based defect detection, and financial risk modeling. These workloads demonstrate rapidly increasing GPU requirements, g...

AI demand forecasting model comparison visualization showing pixelated human figures with data blocks representing Time Series Foundation Models and predictive analytics
Article
Time-series foundation models: AI demand forecasting comparison
Article Time-series foundation models: AI demand forecasting comparison

Predictive analytics is undergoing a major transformation. This AI demand forecasting model comparison reveals significant performance gaps between traditional and modern approaches. Demand forecasting has long guided decisions in retail and manufacturing, but today’s data volumes and volatility ar...

Stylized shoppers and digital devices illustrating agentic payments.
Article
What the ACP vs AP2 agentic payments comparison means for you
Article What the ACP vs AP2 agentic payments comparison means for you

Agentic commerce is in the midst of a defining moment. Instead of a customer navigating a checkout flow, AI shopping agents can now autonomously purchase goods, renew subscriptions, or restock supplies, executing payments entirely on the customer’s behalf through agentic payments protocols. It’s...

Let's talk

    This field is required.
    This field is required.
    This field is required.
    By sharing, I consent to the use or processing of my personal information by Grid Dynamics for the purpose of fulfilling this request and in accordance with Grid Dynamics’s Privacy Policy. For more details about how to opt-out, please refer to the Privacy Policy and Terms & Conditions.
    Submitting
    quote icon

    We consistently turn to Grid Dynamics for our most complex challenges. Their data scientists and AI engineers are top-notch—highly experienced and deeply knowledgeable.

    Sr. Engineering Director, global auto parts retailer

    Geometric composition with teal car wheel

    Thank you!

    It is very important to be in touch with you.
    We will get back to you soon. Have a great day!

    check

    Thank you for reaching out!

    We value your time and our team will be in touch soon.

    check

    Something went wrong...

    There are possible difficulties with connection or other issues.
    Please try again after some time.

    Retry