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

Back in May 2014, we added support for synonyms inside Algolia. We took our time to really nail the details, and in the near-decade since, this feature has been useful to just about all of our customers. Given how popular it is, yet how confusing it might be to new users, we figured we’d recap what they are and why our implementation of them works slightly differently than most.

What are synonyms?

Synonyms tell the search engine which words and expressions to consider equal. For example, a clothing company would likely want to specify that pants and trousers are the same thing, because we’d want a user searching for trousers to get results that don’t contain that word, but that are instead marked as pants.

How to change synonyms in the Algolia dashboard

To change the synonyms in the Algolia dashboard, here’s what you need to do:

  • Click on Search in the left sidebar inside your application.

Algolia search UI

  • Click on the Configuration tab of the index.

Search configuration UI

  • Click on the Synonyms tab.

search synonym configuration

  • Click Add Synonyms if you’re doing this for the first time.

Add synonym configuration

  • Select the type of synonym you want to add, fill in the necessary boxes, and click Save.

Choose search synonyms to add

Types of synonyms available to choose from

Algolia makes this process straightforward and mostly self-explanatory. The only part that might be a little confusing is that last popup – you get to choose between four different types of synonyms:

  • Normal, two-way synonyms

This is the type of synonyms we described earlier, where two or more terms are marked as identical in the context of that specific application. For example, a clothing company might want to specify that pants and trousers should be counted as the same thing, so results matching one should also match the other term.

 

  • One-way synonyms

This is used when one term should be counted as part of another. For example, an electronics retailer might want to consider iPads as a subset of tablets in general, so that someone searching for tablets would get results for iPads (which likely don’t include the word tablet in their product title), but users searching for iPads won’t get results for Android tablets.

 

  • Placeholders

This is how we let one record match many similar but more specific queries. For example, a record for iPhone cases should match more specific queries for each model’s cases. Queries like “iphone 13 case” and “iphone 14 case” are just about as close to records for the phones themselves as a record for a generic iPhone case, so you’d get the most relevant results by putting a placeholder for the model number inside the case record’s title, like this: “iPhone <model> Case”. And then you can create a placeholder synonym for “<model>” with all of the relevant models that the record should match.

 

  • Alternative corrections

This feature is used to consider a one-way synonym a typo for ranking purposes. For example, our user searching for generic tablets might want to also get iPads in the results like in our one-way example, but since someone expecting to get results for iPads likely would have used a more specific query, we’ll consider “iPad” a typo of “tablet” so that a query for tablets will return generic tablets first iPads further down the list.

 

Typeahead and Highlighting

In most search engines, synonyms are not compatible with typeahead search. For example, the “pants” and “trousers” synonyms wouldn’t activate as the user is typing the query. The first query to go out would be “t”, then “tr”, then “tro”, then “trou”, and so on for each letter – but none of those queries will return any results for “pants”.

Only when the user completes the word “trousers” will all of the “pants” results suddenly pop up, which might be a little jarring for the user. That last letter could completely change the result set, but we can improve that user experience. With Algolia, the synonyms match even as prefixes, so the result set only refines as the query gets longer.

 

That goes for highlighting too. The part of the result that matches the query in a typical search is highlighted somehow to show why the result is relevant. But that can be hard to understand when matching a synonym. If the reason for relevance isn’t made obvious enough, the user could easily think the search engine just glitched and returned weird, irrelevant results.

However, Algolia returns exactly what the matching word is, so if you make that information clear to the user, you turn their confusion into relief that the engine understood their error.

And that’s synonyms!

It’s one of the most powerful and versatile features that Algolia offers, and if you’d like to learn more about it, you can check out the docs here. Stay tuned for more upcoming Feature Spotlight posts to learn more about what makes Algolia special!

About the author
Jaden Baptista

Technical Writer

Recommended Articles

Powered byAlgolia Algolia Recommend

4 questions to ask for relevant search results
product

Jaden Baptista

Technical Writer

Query Relaxation and Scoping as part of semantic search
ux

Dustin Coates

Product and GTM Manager

Algolia's top 10 tips to achieve highly relevant search results
product

Julien Lemoine

Co-founder & former CTO at Algolia