Search by Algolia
Add InstantSearch and Autocomplete to your search experience in just 5 minutes
product

Add InstantSearch and Autocomplete to your search experience in just 5 minutes

A good starting point for building a comprehensive search experience is a straightforward app template. When crafting your application’s ...

Imogen Lovera

Senior Product Manager

Best practices of conversion-focused ecommerce website design
e-commerce

Best practices of conversion-focused ecommerce website design

The inviting ecommerce website template that balances bright colors with plenty of white space. The stylized fonts for the headers ...

Catherine Dee

Search and Discovery writer

Ecommerce product listing pages: what they are and how to optimize them for maximum conversion
e-commerce

Ecommerce product listing pages: what they are and how to optimize them for maximum conversion

Imagine an online shopping experience designed to reflect your unique consumer needs and preferences — a digital world shaped completely around ...

Vincent Caruana

Senior Digital Marketing Manager, SEO

DevBit Recap: Winter 2023 — Community
engineering

DevBit Recap: Winter 2023 — Community

Winter is here for those in the northern hemisphere, with thoughts drifting toward cozy blankets and mulled wine. But before ...

Chuck Meyer

Sr. Developer Relations Engineer

How to create the highest-converting product detail pages (PDPs)
e-commerce

How to create the highest-converting product detail pages (PDPs)

What if there were a way to persuade shoppers who find your ecommerce site, ultimately making it to a product ...

Vincent Caruana

Senior Digital Marketing Manager, SEO

Highlights from GopherCon Australia 2023
engineering

Highlights from GopherCon Australia 2023

This year a bunch of our engineers from our Sydney office attended GopherCon AU at University of Technology, Sydney, in ...

David Howden
James Kozianski

David Howden &

James Kozianski

Enhancing customer engagement: The role of conversational commerce
e-commerce

Enhancing customer engagement: The role of conversational commerce

Second only to personalization, conversational commerce has been a hot topic of conversation (pun intended) amongst retailers for the better ...

Michael Klein

Principal, Klein4Retail

Craft a unique discovery experience with AI-powered recommendations
product

Craft a unique discovery experience with AI-powered recommendations

Algolia’s Recommend complements site search and discovery. As customers browse or search your site, dynamic recommendations encourage customers to ...

Maria Lungu

Frontend Engineer

What are product detail pages and why are they critical for ecommerce success?
e-commerce

What are product detail pages and why are they critical for ecommerce success?

Winter is coming, along with a bunch of houseguests. You want to replace your battered old sofa — after all,  the ...

Catherine Dee

Search and Discovery writer

Why weights are often counterproductive in ranking
engineering

Why weights are often counterproductive in ranking

Search is a very complex problem Search is a complex problem that is hard to customize to a particular use ...

Julien Lemoine

Co-founder & former CTO at 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

Looking for something?

facebookfacebooklinkedinlinkedintwittertwittermailmail

Last year was a big year for us here at Algolia. We hired scores of incredible people and released some incredible new features. One of the earliest was query suggestions, released in February. It harnesses our analytics API to create dynamic suggestions ranked by popularity. Its ease of implementation allows our users to, in a matter of hours, create a UX that consumers, “spoiled” by Google, have come to expect. To read more about how the feature works in detail, check out this blog post.

TL;DR: our query suggestions engine creates an index of the most popular search terms that lead to results (vs those with zero results) and refreshes that every 24 hours. This index can be used to create the autocomplete dropdown that Google has led many of us to know and love.

Unlike Google’s, however, this list is not yet tailored to an individual user.

What about a personalized experience?

One trend last year was increasingly personalized content— advertising follows us across devices and curated content is recommended to us based on our past browsing history. Google, for example, saves our searches (among other things) so that two people sitting next to each other, searching for the exact same thing, might get a different set of suggestions.

Algolia customers can recreate this experience by combining our current query suggestions feature and just a bit of additional leg work: By saving searches on a per-user or per-segment basis, to create a highly personalized search experience.

Personalized saved searches allow your users to quickly search for something they look for frequently, while the crowd-sourced suggestions allow them to more easily discover a term they may have been looking to search. Because the suggestions coming from our query suggestions feature are being generated by a wider audience, they will change more frequently and will represent what is trending. For this reason, we recommend sticking to a ratio similar to what is shown above: 1 to 5 for saved to suggested searches.

An added bonus—by building saved searches in Algolia rather than relying on some sort of caching like localStorage, these saved searches are available cross-device This allows a user searching on their phone to access searches they made on their laptop.

Building it

The query suggestions feature can be used as a template for how to do this. Query suggestions draw from our analytics API to create a new index; you will have to create a new index with recent searches in it. Algolia pulls results on a per character basis, but it would be best to only send “completed” searches to Algolia for indexing by debouncing — waiting a set amount of time without any new character input.

Each completed search should be tagged with a timestamp, count, and usertoken for the user who made it. The count attribute is incremented every time the user types the particular search term and can be used as a custom ranking attribute to boost the most popular searches to the top. The timestamp will allow you to both purge old searches (say those older than 30 days) and to rank searches by recency. The usertoken will allow you to only pull up relevant saved searches on a per-user basis.

It is better to create a large index with all of your users’ saved searches rather than creating one index per user, as indexing updates to multiple small indices is much slower than indexing the same number of updates to one large index. Additionally, we recommend using our secured API keys feature when pulling results from the API for enhanced history containerization and security.

On the front end

One caveat is that, since the dropdown is being built from two separate indices, it’s possible that something could come up as *both* a saved search, and a suggestion. This experience looks glitchy and takes up valuable real estate on dropdowns that should stay short. For that reason, it helps to always display the 1-2 saved searches, but then build additional logic to not display any suggestion that is also found in the saved searches.

A nice UI touch is to differentiate the saved searches from the suggestions. Google has done this by bolding and adding a “Remove” option.

Adding an icon to denote that this suggestion is being sourced from the search history is another nice option.

Announcing automated personalization

Saving a user’s search behavior and using it to influence the output of future search results is the basic concept behind our biggest feature release of last year.

On December 18th, we released an automated personalization feature that allows our users to return individualized search results for their end-users based on their past actions.

What events in that history to consider — whether it be product page views, hitting the “like” button, or reading an article to its completion, how much each event is weighted, and how “similar” items are scored — is up to you and configurable on the Algolia dashboard. The only additional development work is to send these events to our Insights API whenever they occur, and to toggle on the “personalized” option when returning the results.

We’ll take care of the rest.

Check out the blog post and the product page on personalization to learn more.

Availability

Query Suggestions is available today for our Business and Enterprise customers and Automated Personalization is available for Enterprise customers only. To enable these features directly on your dashboard, reach out to your product specialist or customer success manager.

Have feedback? Tweet to us @algolia, or comment below. Thanks for reading!

About the author
Maria Schreiber

Solutions Engineer, New York

githublinkedin

Think outside the (search) box

Innovative user experiences for improving e-commerce conversion rates.

Discover more
Ebook
Ebook

Recommended Articles

Powered byAlgolia Algolia Recommend

Introducing Query Suggestions: Making Autocomplete Search Experiences Right
product

Lucas Cerdan

Product Manager

Suggested search and autocomplete: What is it and how does it work?
ux

Catherine Dee

Search and Discovery writer

Mobile search done right: Common pitfalls and best practices
ux

Alexandre Collin

Staff SME Business & Optimization - UI/UX