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 ...
Senior Software Engineer
How do you measure the success of a new feature? How do you test the impact? There are different ways ...
Senior Software Engineer
Algolia's advanced search capabilities pair seamlessly with iOS or Android Apps when using FlutterFlow. App development and search design ...
Sr. Developer Relations Engineer
In the midst of the Black Friday shopping frenzy, Algolia soared to new heights, setting new records and delivering an ...
Chief Executive Officer and Board Member at Algolia
When was your last online shopping trip, and how did it go? For consumers, it’s becoming arguably tougher to ...
Senior Digital Marketing Manager, SEO
Have you put your blood, sweat, and tears into perfecting your online store, only to see your conversion rates stuck ...
Senior Digital Marketing Manager, SEO
“Hello, how can I help you today?” This has to be the most tired, but nevertheless tried-and-true ...
Search and Discovery writer
We are proud to announce that Algolia was named a leader in the IDC Marketscape in the Worldwide General-Purpose ...
VP Corporate Marketing
Twice a year, B2B Online brings together America’s leading manufacturers and distributors to uncover learnings and industry trends. This ...
Director, Sales Enablement & B2B Practice Leader
Generative AI and large language models (LLMs). These two cutting-edge AI technologies sound like totally different, incomparable things. One ...
Search and Discovery writer
ChatGPT, Bing, Bard, YouChat, DALL-E, Jasper…chances are good you’re leveraging some version of generative artificial intelligence on ...
Search and Discovery writer
Your users are spoiled. They’re used to Google’s refined and convenient search interface, so they have high expectations ...
Technical Writer
Imagine if, as your final exam for a computer science class, you had to create a real-world large language ...
Sr. SEO Web Digital Marketing Manager
What do you think of the OpenAI ChatGPT app and AI language models? There’s lots going on: GPT-3 ...
Search and Discovery writer
In the fast-paced and dynamic realm of digital merchandising, being reactive to customer trends has been the norm. In ...
Staff User Researcher
You’re at a dinner party when the conversation takes a computer-science-y turn. Have you tried ChatGPT? What ...
Sr. SEO Web Digital Marketing Manager
It’s the era of Big Data, and super-sized language models are the latest stars. When it comes to ...
Search and Discovery writer
Did you know that 86% of the global population uses a smartphone? The 7 billion devices connected to the Internet ...
Staff SME Business & Optimization - UI/UX
The Cloud Native Foundation is known for being the organization behind Kubernetes and many other Cloud Native tools. To foster ...
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.
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”.
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:
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”.
Then click Filter Results, so that when Algolia sees the user’s query and triggers this rule, it’ll filter how we expect:
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:
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!
Technical Writer
Powered by Algolia Recommend