Skip to content
Logo-black
      • All Constructor Products A connected system of intelligent discovery channels.
      • CONSTRUCTOR PLATFORM

        Learn more about the platform driven by a central Discovery Reasoning Engine that interprets behavior, context, and intent to deliver the right products to the right person, everywhere they shop.

        View More
      • SHOPPING AGENTS

        • AI Shopping Agent

          Helps shoppers find what they want to buy using natural language

        • Product Insights Agent

          Generate and answer personalized product questions that help shoppers buy with confidence

      • ONSITE SHOPPER EXPERIENCES

        • Search & Autosuggest

          Ecommerce search driven by AI and real-time shopper behavior

        • Browse

          Personalize your ecommerce category pages for maximum conversion

        • Recommendations

          Help shoppers discover products they didn’t know they needed

        • Retail Media

          Unlock paid revenue with relevant sponsored products and ads that don’t sacrifice customer experience

        • Collections

          Build dynamic, curated product pages

        • Quizzes

          Create smart product recommendation experiences that drive shopper engagement

      • OFFSITE SHOPPER EXPERIENCES

        • Cross-Channel & Offsite Discovery

          Create data-driven marketing campaigns across channels including email, SMS, mobile notifications and in-store

      • INSIGHTS & AUTOMATIONS

        • Merchant Intelligence Agent (Beta)

          Research, understand and fix what’s behind every result and ranking

        • Attribute Enrichment

          Enrich product and category attributes using GenAI to improve discoverability

        • Merchandiser Controls

          Gain insight from dashboards and reports, set controls and run experiments

    • q3-25-forrester-shopify-webinar-resource-hub@2x

      AI Agents in Commerce: What’s Working, What’s Not, and How to Start

      Join Constructor and Shopify leadership, along with guest speaker Emily Pfeiffer, Principal Analyst at Forrester, for an expert-driven discussion.

      View Now
        • B2C

          Help more shoppers find the right products for them.

        • B2B

          Product discovery technology that’s purpose-built to handle the complex needs of B2B ecommerce.

        • Fashion & Apparel

          Tailor discovery experiences to every season, trend, and shopper.

        • Grocery

          Help every shopper fill their basket — faster, smarter, and more profitably.

        • Furniture & Home Goods

          Make researching and buying furniture feel effortless.

        • Department & General Merchandise

          Show appealing product results from large, complex catalogs.

  • Customers
    • agentic-ai-hero@2x-2

      Preparing Retail for Agentic AI

      We're witnessing the early stages of a radical shift in digital commerce: the rise of AI shopping agents. It's a transformation that redefines discovery, giving shoppers a new way to find products and make purchasing decisions.

      Read Now
        • Upcoming Events

          Visit us in person at ecommerce industry events.

        • Reports & Guides

          New research, guidance, and insights for the future of retail.

        • Webinars

          Educational webinars, conversations with Constructor partners, and more.

        • Blog

          The latest ideas and news from the frontier of commerce search and discovery.

        • Split/Test Digest

          The most interesting learnings from A/B testing at Constructor.

        • News

          Read Constructor's latest news coverage and press announcements.

        • Documentation

          Learn about the components of Constructor's advanced, AI-powered product discovery suite.

        • About Us

          With AI in our DNA and by keeping ecommerce as our core focus, we’ve built the best product search and discovery solution specifically for the unique needs of retailers.

        • Partners

          Constructor partners with the world’s top retail consultants, systems integrators, and technology platforms.

        • Careers

          Constructor is building the next generation of search solutions.

Login
Book a Demo
      • All Constructor Products A connected system of intelligent discovery channels.
      • CONSTRUCTOR PLATFORM

        Learn more about the platform driven by a central Discovery Reasoning Engine that interprets behavior, context, and intent to deliver the right products to the right person, everywhere they shop.

        View More
      • SHOPPING AGENTS

        • AI Shopping Agent

          Helps shoppers find what they want to buy using natural language

        • Product Insights Agent

          Generate and answer personalized product questions that help shoppers buy with confidence

      • ONSITE SHOPPER EXPERIENCES

        • Search & Autosuggest

          Ecommerce search driven by AI and real-time shopper behavior

        • Browse

          Personalize your ecommerce category pages for maximum conversion

        • Recommendations

          Help shoppers discover products they didn’t know they needed

        • Retail Media

          Unlock paid revenue with relevant sponsored products and ads that don’t sacrifice customer experience

        • Collections

          Build dynamic, curated product pages

        • Quizzes

          Create smart product recommendation experiences that drive shopper engagement

      • OFFSITE SHOPPER EXPERIENCES

        • Cross-Channel & Offsite Discovery

          Create data-driven marketing campaigns across channels including email, SMS, mobile notifications and in-store

      • INSIGHTS & AUTOMATIONS

        • Merchant Intelligence Agent (Beta)

          Research, understand and fix what’s behind every result and ranking

        • Attribute Enrichment

          Enrich product and category attributes using GenAI to improve discoverability

        • Merchandiser Controls

          Gain insight from dashboards and reports, set controls and run experiments

    • q3-25-forrester-shopify-webinar-resource-hub@2x

      AI Agents in Commerce: What’s Working, What’s Not, and How to Start

      Join Constructor and Shopify leadership, along with guest speaker Emily Pfeiffer, Principal Analyst at Forrester, for an expert-driven discussion.

      View Now
        • B2C

          Help more shoppers find the right products for them.

        • B2B

          Product discovery technology that’s purpose-built to handle the complex needs of B2B ecommerce.

        • Fashion & Apparel

          Tailor discovery experiences to every season, trend, and shopper.

        • Grocery

          Help every shopper fill their basket — faster, smarter, and more profitably.

        • Furniture & Home Goods

          Make researching and buying furniture feel effortless.

        • Department & General Merchandise

          Show appealing product results from large, complex catalogs.

  • Customers
    • agentic-ai-hero@2x-2

      Preparing Retail for Agentic AI

      We're witnessing the early stages of a radical shift in digital commerce: the rise of AI shopping agents. It's a transformation that redefines discovery, giving shoppers a new way to find products and make purchasing decisions.

      Read Now
        • Upcoming Events

          Visit us in person at ecommerce industry events.

        • Reports & Guides

          New research, guidance, and insights for the future of retail.

        • Webinars

          Educational webinars, conversations with Constructor partners, and more.

        • Blog

          The latest ideas and news from the frontier of commerce search and discovery.

        • Split/Test Digest

          The most interesting learnings from A/B testing at Constructor.

        • News

          Read Constructor's latest news coverage and press announcements.

        • Documentation

          Learn about the components of Constructor's advanced, AI-powered product discovery suite.

        • About Us

          With AI in our DNA and by keeping ecommerce as our core focus, we’ve built the best product search and discovery solution specifically for the unique needs of retailers.

        • Partners

          Constructor partners with the world’s top retail consultants, systems integrators, and technology platforms.

        • Careers

          Constructor is building the next generation of search solutions.

Login
Book a Demo
Back to Blog

Improving Your Site Search: Monitoring Zero Result Searches

Published on:
November 4, 2024
Author:
Dan McCormick
Table of Contents:

Monitoring searches that don’t return any results is an important part of improving any search  experience. So-called “zero result searches” give you valuable data about what your customers are looking for but aren’t finding, giving you important clues about what products or services you should add.

In addition, zero result searches can give you useful information about how your customers are misspelling search terms, or using words that aren’t in your search engine, which you can then add to your search engine if appropriate.

One way to monitor zero result searches is to simply log them to your database every time they happen, with the exact query the user typed in and the date it occurred. Then, you can periodically aggregate this information by day and truncate the logging table so it doesn’t grow overly big. This approach is simple and works well for low-traffic sites, but isn’t a great idea for sites with lots of visitors, since it may cause a lot of work for your production database.

Another simple approach uses a third-party service called Loggly that provides a free subscription for simple uses like this.

Loggly is a general logging service that can be used with almost all modern web frameworks. I’ll be showing how to set it up using Ruby on Rails, but the same approach also applies to other languages and frameworks.

The first step is to sign up for a free account at Loggly. Then, add the Loggly gem to your Gemfile:

gem 'logglier'

and run “bundle install” to install it.

Next, create an initializer at config/initializers/loggly.rb containing:

loggly = Logglier.new('https://logs-01.loggly.com/inputs/[token]/tag/rails', threaded: true, format: :json)
Rails.logger.extend(ActiveSupport::Logger.broadcast(loggly))

Where [token] is the customer token you can find by clicking on “Source Setup” and then “Customer Tokens” in your Loggly account.

This initializer extends the native Rails logging object so that it also sends data to Loggly.

Then, wherever you call your search engine in your application, add a line like this:

logger.info event: "search", query: params[:query], num_results: @search_results.size, environment: Rails.env

Here, “params[:query]” is the query passed in by the user. @search_results is the variable containing the results from the search engine, so @search_results.size gives the total number of results. And I include the environment so that I can distinguish between tests in the development environment and real production traffic.

Then login to your Loggly account and click the “Search” tab. In the Field Explorer on the left, you should see a list similar to this:

Click “JSON” and then “num_results”. That will open a panel that looks like this:

Enter “0” in the field shown and click “Apply”. This will show you a list of all the log entries that have zero search results. To display a more readable view of the data, click the Grid View icon:

Then click the orange “Add field column to grid” button, select “json.query” and voila! You now have a list of all the searches that returned zero results, which you can download by clicking the “Export grid events” icon on the right.

You can even click the “Trends View” icon (next to the Grid View icon) to see pie charts and line charts of the data (just select “Split by: json.query”). Once you’re done testing and have pushed your code to production, you can add an “environment: production” filter (in the same list of JSON parameters you used above) to only show production traffic.

Monitoring your site’s zero result searches is an excellent way to continually improve your site’s search experience. Whether you write the queries to a database or integrate with a third-party service like Loggly, you’ll gain valuable insight about your users’ behavior.

Subscribe to the Constructor Blog

Get the latest ideas and news from the frontier of commerce search and discovery delivered straight to your inbox.

What's next?

Uncover lost revenue opportunities with a complimentary Search Experience Audit.

According to the 2024 State of Ecommerce Search & Product Discovery Survey, nearly 70% of shoppers think the search function on retail websites needs an upgrade. Our team has run over 1000 A/B tests to identify easy-to-implement algorithmic and UX improvements that get results. Use their research to your advantage with a complimentary Search Experience Audit — no strings attached.

Request an Audit
  • Analyze your search results quality
  • Identify "no results" pages
  • Pinpoint irrelevant results for long-form queries
  • Uncover UX opportunities for Search, Autocomplete, and PLPs

According to the 2024 State of Ecommerce Search & Product Discovery Survey, nearly 70% of shoppers think the search function on retail websites needs an upgrade. Our team has run over 1000 A/B tests to identify easy-to-implement algorithmic and UX improvements that get results. Use their research to your advantage with a complimentary Search Experience Audit — no strings attached.

Request an Audit
  • MACH Certified
  • 21972-312_SOC_NonCPA-150x150
  • Cartification-mark_04-09-300x253-1-150x150
Constructor.io Logo
  • Technology
    • Native Commerce Core™
    • Agentic Commerce
    • Request a Demo
    • The Proof Schedule®
  • Solutions
    • Search & Autosuggest
    • Browse
    • Recommendations
    • Collections
    • AI Shopping Agent
    • AI Product Insights Agent
    • Merchant Intelligence Agent
    • Attribute Enrichment
    • Quizzes
    • B2B Solutions
  • Resources Hub
    • Events
    • Reports, Guides & Webinars
    • Blog
    • Experiments
    • News
    • Constructor vs Alternatives
    • Documentation
  • About
    • About Us
    • Partners
    • Security & Compliance
    • Careers
  • Technology
    • Native Commerce Core™
    • Agentic Commerce
    • Request a Demo
    • The Proof Schedule®
  • Solutions
    • Search & Autosuggest
    • Browse
    • Recommendations
    • Collections
    • AI Shopping Agent
    • AI Product Insights Agent
    • Merchant Intelligence Agent
    • Attribute Enrichment
    • Quizzes
    • B2B Solutions
  • Resources Hub
    • Events
    • Reports, Guides & Webinars
    • Blog
    • Experiments
    • News
    • Constructor vs Alternatives
    • Documentation
  • About
    • About Us
    • Partners
    • Security & Compliance
    • Careers
© 2026 Constructor All rights reserved
  • Terms of Service
  • Privacy Policy