Search by Algolia
How to increase your ecommerce conversion rate in 2024
e-commerce

How to increase your ecommerce conversion rate in 2024

2%. That’s the average conversion rate for an online store. Unless you’re performing at Amazon’s promoted products ...

Vincent Caruana

Senior Digital Marketing Manager, SEO

How does a vector database work? A quick tutorial
ai

How does a vector database work? A quick tutorial

What’s a vector database? And how different is it than a regular-old traditional relational database? If you’re ...

Catherine Dee

Search and Discovery writer

Removing outliers for A/B search tests
engineering

Removing outliers for A/B search tests

How do you measure the success of a new feature? How do you test the impact? There are different ways ...

Christopher Hawke

Senior Software Engineer

Easily integrate Algolia into native apps with FlutterFlow
engineering

Easily integrate Algolia into native apps with FlutterFlow

Algolia's advanced search capabilities pair seamlessly with iOS or Android Apps when using FlutterFlow. App development and search design ...

Chuck Meyer

Sr. Developer Relations Engineer

Algolia's search propels 1,000s of retailers to Black Friday success
e-commerce

Algolia's search propels 1,000s of retailers to Black Friday success

In the midst of the Black Friday shopping frenzy, Algolia soared to new heights, setting new records and delivering an ...

Bernadette Nixon

Chief Executive Officer and Board Member at Algolia

Generative AI’s impact on the ecommerce industry
ai

Generative AI’s impact on the ecommerce industry

When was your last online shopping trip, and how did it go? For consumers, it’s becoming arguably tougher to ...

Vincent Caruana

Senior Digital Marketing Manager, SEO

What’s the average ecommerce conversion rate and how does yours compare?
e-commerce

What’s the average ecommerce conversion rate and how does yours compare?

Have you put your blood, sweat, and tears into perfecting your online store, only to see your conversion rates stuck ...

Vincent Caruana

Senior Digital Marketing Manager, SEO

What are AI chatbots, how do they work, and how have they impacted ecommerce?
ai

What are AI chatbots, how do they work, and how have they impacted ecommerce?

“Hello, how can I help you today?”  This has to be the most tired, but nevertheless tried-and-true ...

Catherine Dee

Search and Discovery writer

Algolia named a leader in IDC MarketScape
algolia

Algolia named a leader in IDC MarketScape

We are proud to announce that Algolia was named a leader in the IDC Marketscape in the Worldwide General-Purpose ...

John Stewart

VP Corporate Marketing

Mastering the channel shift: How leading distributors provide excellent online buying experiences
e-commerce

Mastering the channel shift: How leading distributors provide excellent online buying experiences

Twice a year, B2B Online brings together America’s leading manufacturers and distributors to uncover learnings and industry trends. This ...

Jack Moberger

Director, Sales Enablement & B2B Practice Leader

Large language models (LLMs) vs generative AI: what’s the difference?
ai

Large language models (LLMs) vs generative AI: what’s the difference?

Generative AI and large language models (LLMs). These two cutting-edge AI technologies sound like totally different, incomparable things. One ...

Catherine Dee

Search and Discovery writer

What is generative AI and how does it work?
ai

What is generative AI and how does it work?

ChatGPT, Bing, Bard, YouChat, DALL-E, Jasper…chances are good you’re leveraging some version of generative artificial intelligence on ...

Catherine Dee

Search and Discovery writer

Feature Spotlight: Query Suggestions
product

Feature Spotlight: Query Suggestions

Your users are spoiled. They’re used to Google’s refined and convenient search interface, so they have high expectations ...

Jaden Baptista

Technical Writer

What does it take to build and train a large language model? An introduction
ai

What does it take to build and train a large language model? An introduction

Imagine if, as your final exam for a computer science class, you had to create a real-world large language ...

Vincent Caruana

Sr. SEO Web Digital Marketing Manager

The pros and cons of AI language models
ai

The pros and cons of AI language models

What do you think of the OpenAI ChatGPT app and AI language models? There’s lots going on: GPT-3 ...

Catherine Dee

Search and Discovery writer

How AI is transforming merchandising from reactive to proactive
e-commerce

How AI is transforming merchandising from reactive to proactive

In the fast-paced and dynamic realm of digital merchandising, being reactive to customer trends has been the norm. In ...

Lorna Rivera

Staff User Researcher

Top examples of some of the best large language models out there
ai

Top examples of some of the best large language models out there

You’re at a dinner party when the conversation takes a computer-science-y turn. Have you tried ChatGPT? What ...

Vincent Caruana

Sr. SEO Web Digital Marketing Manager

What are large language models?
ai

What are large language models?

It’s the era of Big Data, and super-sized language models are the latest stars. When it comes to ...

Catherine Dee

Search and Discovery writer

Looking for something?

facebookfacebooklinkedinlinkedintwittertwittermailmail

You’re running an ecommerce site for an electronics retailer, and you’re seeing in your analytics that users keep searching for “cheap phones”. Right now, that’s leading to a ton of empty result sets, bounced users, and lost revenue, so your supervisor has tasked you with doing something about it.

One colleague suggested adding the word “cheap” to phone results that are under $400, but you know that’s not a good idea. Not only does having the word “cheap” in your product titles or description just sound like bad marketing, it’s completely unsustainable because product prices change all the time.

Another colleague suggested hardcoding a rule in your codebase to convert the word “cheap” in a query into a filter for products under $400, and while that’s definitely closer to the right solution, you can tell that’s not sustainable either. It requires putting more on the developers’ plate, creating your own system to handle the hardcoded rules, and keeping somebody with technical skills around to manually add more rules in the future.

Wouldn’t it be nice if your search engine handled the technicality of this for you and gave you a clean UI to manage these rules with?

Enter Algolia’s Query Rules.

Make filters from textual queries

The use-case described above is easy to fix with Algolia. Inside your search index, click on the Rules tab on the left and click “Create your first Rule”.

customize your search experience with query rules

Select the Visual Editor (this is the one that you don’t need technical skills to manage) and you’ll get a window like this:

Query rules visual editor

Start by choosing one of the three options in the top left. For our cheap phone example, try setting a query condition that triggers when the query contains the words “cheap phone”.

Setting query rule conditions

 

Then click Filter Results, so that when Algolia sees the user’s query and triggers this rule, it’ll filter how we expect:

Query rules category filters

Temporary pins

Another thing you can do with Query Rules is pin results based on some query trigger. For example, our fictional smartphone retailer probably wants the newest phones to show up in search results they match. But when you think about it, they’ll have very few views and sales, so there’s really no logical reason that the engine would prioritize these entries.

We can handle this with Query Rules. Let’s promote the (still-future-as-of-writing) iPhone 15 from September to December 2023 by setting a date range trigger:

Query rules date range trigger

 

Then click Pin items, select the result representing the iPhone 15, and keep the checkbox checked.

In our case, we only want the iPhone 15 pinned to the top of the search results if that’s actually what the user was searching for. The user experience could get really frustrating otherwise in our use-case – imagine searching for something else an electronics store would sell like a speaker system, but every search returns the latest iPhone in first place – but there are legitimate use-cases where it might be a good idea to untick this box.

You can use the same logic system to boost or bury certain product categories – noticing VR and AR products are skyrocketing in popularity and performing really well whenever users see them? Boost them in the search rankings to take advantage of the trend.

Perhaps you’re not going to be stocking some products for a while – maybe you could use a query rule to hide some items or boost their replacements. The possibilities are endless!

If you’re curious about how to use this to implement your great ideas, check out the more thorough docs here. Happy building!

About the author
Jaden Baptista

Technical Writer

Recommended Articles

Powered byAlgolia Algolia Recommend

Enhance & Promote Results: Introducing Query Rules
product

Nicolas Baissas

4 questions to ask for relevant search results
product

Jaden Baptista

Technical Writer

What is a search query and how is it processed by a search engine?
product

Catherine Dee

Search and Discovery writer