Search by Algolia
AI-powered search: From keywords to conversations
ai

AI-powered search: From keywords to conversations

By now, everyone’s had the opportunity to experiment with AI tools like ChatGPT or Midjourney and ponder their inner ...

Chris Stevenson

Director, Product Marketing

Vector vs Keyword Search: Why You Should Care
ai

Vector vs Keyword Search: Why You Should Care

Search has been around for a while, to the point that it is now considered a standard requirement in many ...

Nicolas Fiorini

Senior Machine Learning Engineer

What is AI-powered site search?
ai

What is AI-powered site search?

With the advent of artificial intelligence (AI) technologies enabling services such as Alexa, Google search, and self-driving cars, the ...

John Stewart

VP Corporate Marketing

What is a B2B marketplace?
e-commerce

What is a B2B marketplace?

It’s no secret that B2B (business-to-business) transactions have largely migrated online. According to Gartner, by 2025, 80 ...

Vincent Caruana

Sr. SEO Web Digital Marketing Manager

3 strategies for B2B ecommerce growth: key takeaways from B2B Online - Chicago
e-commerce

3 strategies for B2B ecommerce growth: key takeaways from B2B Online - Chicago

Twice a year, B2B Online brings together industry leaders to discuss the trends affecting the B2B ecommerce industry. At the ...

Elena Moravec

Director of Product Marketing & Strategy

Deconstructing smart digital merchandising
e-commerce

Deconstructing smart digital merchandising

This is Part 2 of a series that dives into the transformational journey made by digital merchandising to drive positive ...

Benoit Reulier
Reshma Iyer

Benoit Reulier &

Reshma Iyer

The death of traditional shopping: How AI-powered conversational commerce changes everything
ai

The death of traditional shopping: How AI-powered conversational commerce changes everything

Get ready for the ride: online shopping is about to be completely upended by AI. Over the past few years ...

Aayush Iyer

Director, User Experience & UI Platform

What is B2C ecommerce? Models, examples, and definitions
e-commerce

What is B2C ecommerce? Models, examples, and definitions

Remember life before online shopping? When you had to actually leave the house for a brick-and-mortar store to ...

Catherine Dee

Search and Discovery writer

What are marketplace platforms and software? Why are they important?
e-commerce

What are marketplace platforms and software? Why are they important?

If you imagine pushing a virtual shopping cart down the aisles of an online store, or browsing items in an ...

Vincent Caruana

Sr. SEO Web Digital Marketing Manager

What is an online marketplace?
e-commerce

What is an online marketplace?

Remember the world before the convenience of online commerce? Before the pandemic, before the proliferation of ecommerce sites, when the ...

Catherine Dee

Search and Discovery writer

10 ways AI is transforming ecommerce
e-commerce

10 ways AI is transforming ecommerce

Artificial intelligence (AI) is no longer just the stuff of scary futuristic movies; it’s recently burst into the headlines ...

Catherine Dee

Search and Discovery writer

AI as a Service (AIaaS) in the era of "buy not build"
ai

AI as a Service (AIaaS) in the era of "buy not build"

Imagine you are the CTO of a company that has just undergone a massive decade long digital transformation. You’ve ...

Sean Mullaney

CTO @Algolia

By the numbers: the ROI of keyword and AI site search for digital commerce
product

By the numbers: the ROI of keyword and AI site search for digital commerce

Did you know that the tiny search bar at the top of many ecommerce sites can offer an outsized return ...

Jon Silvers

Director, Digital Marketing

Using pre-trained AI algorithms to solve the cold start problem
ai

Using pre-trained AI algorithms to solve the cold start problem

Artificial intelligence (AI) has quickly moved from hot topic to everyday life. Now, ecommerce businesses are beginning to clearly see ...

Etienne Martin

VP of Product

Introducing Algolia NeuralSearch
product

Introducing Algolia NeuralSearch

We couldn’t be more excited to announce the availability of our breakthrough product, Algolia NeuralSearch. The world has stepped ...

Bernadette Nixon

Chief Executive Officer and Board Member at Algolia

AI is eating ecommerce
ai

AI is eating ecommerce

The ecommerce industry has experienced steady and reliable growth over the last 20 years (albeit interrupted briefly by a global ...

Sean Mullaney

CTO @Algolia

Semantic textual similarity: a game changer for search results and recommendations
product

Semantic textual similarity: a game changer for search results and recommendations

As an ecommerce professional, you know the importance of providing a five-star search experience on your site or in ...

Vincent Caruana

Sr. SEO Web Digital Marketing Manager

What is hashing and how does it improve website and app search?
ai

What is hashing and how does it improve website and app search?

Hashing.   Yep, you read that right.   Not hashtags. Not golden, crisp-on-the-outside, melty-on-the-inside hash browns ...

Catherine Dee

Search and Discovery writer

Looking for something?

facebookfacebooklinkedinlinkedintwittertwittermailmail

Where can I get ramen asap near me?

How many ants does it take to kill a human?

Check engine light youtube

What is the meaning of life?

These are typical Google searches; just a few of the many concerns on the minds of people as they’re trying to navigate the complexities of their daily lives. 

Being able to web search using any of many available search engines, both public and private, has changed, and is still profoundly changing, many aspects of life in the developed world. It’s hard to imagine that we survived, or that we weren’t bored to tears, before people were able to glue themselves to their electronic devices and instantly Google any question — urgent and critical or random and nonessential — that pops into their heads.

So you probably know what a search query is (well yeah, you handle them every day). But let’s review just in case, and then get into the second, less-obvious part about how a search query is processed.

What is a search query?

If you’re thinking “the string of words someone uses to ask a question,” bravo!

“Query” sounds a lot like “question.” How are they different? 

According to WikiDiff, a query is indeed a question or an inquiry. Then, by comparison, what’s a question? “A sentence, phrase, or word that asks for information.” 

If a query and a question still sound like the same thing to you based on this definition, you’re not alone. Hmm. Next query, er, question: Is WikiDiff reliable? Maybe not.

At any rate, let’s get back to Search Queries 101. There’s an astounding number of search terms being entered in search boxes (and by using digital voice assistants and voice-search apps). Google processes roughly 100,000 searches every second. And that’s just Google.

What are people querying about? Mainly how to go somewhere on the Web, like a company’s home page; how to do something, or how (or where) to buy something. 

There are three flavors of search query, according to those in the know. Here’s what you need to know about the three different types of search queries:

Navigational search queries

This is when the person has a certain website (the landing page or a particular subpage on the site, like the FAQs) in mind and intends to go there. Maybe they know the (relatively simple) URL but are too lazy to type it in their browser. Maybe they’re surfing their social media feed and see a conversation about the benefits of brushing their dog’s fur, so they query for the name of a local pet supply store. They may not know the exact URL or spelling of the company name, and they figure it’s just easier to query for it.

What are some examples of navigational queries? The top ones on Google are simply “facebook” and “youtube.”

Informational search queries

As the name of this one makes pretty obvious, the person is seeking general guidance, facts, or figures — for instance, the steps for how to do something like bake a batch of red velvet cupcakes. 

An informational search might be phrased as a question, such as “How do I recycle a refrigerator?” or “How much alcohol is in non-alcoholic beer?”, but could also be as simple as one word, such as “latte” or “parakeets.”

Transactional search queries

Yep, in this case, the person wants to buy something, either on an ecommerce site or in a brick-and-mortar store. They possess what’s known as “transactional intent.” Using search engine optimization (SEO) to target keywords is applicable mostly for this type of query, since the right words used in digital marketing will rank your business higher in people’s search results and potentially lead to higher revenue.

Examples of a transactional query: “Buy Breville espresso machine”, “deal on iPhone 13”, “best dog brush”.

The journey of a search query

What goes on within the “brain” of a search engine when someone enters a search query in a search bar? What’s happening under the proverbial hood?

Most search engines parse the query and then send it to the index server for processing. 

“Some search engines may “preprocess” the query, using spell checking or query suggestions (essentially asking the searcher “Do you mean….?”).

It’s matched to web pages considered relevant in the search engine’s index, and various rules and parameters are applied. The listing order on the search engine results page (SERP) is then determined based on the best relevance.

To envision the mechanics, it helps to know how a search engine prepares its information index to be searched. For starters, an “index” is where the data is stored. Most search engines store their data in an index in a structured way called an inverted list. 

For instantaneous information retrieval, the engine reverses the logic and structures the index in an “inverted” flow. So instead of scanning a document looking for words, it matches words in order to locate documents. 

Here’s how the search query aardvark could be processed in this model:

As you can see, when you type an a, you get every word that starts with a (and every other alphabetical column is ruled out). If you keep adding letters to your query (aa, then aar), each addition narrows down your matches. And voila, you end up with four relevant search results that will tell you all about earth pigs.  

Keep in mind that because different search engines use individual proprietary algorithms, they all operate and rank relevant terms slightly differently. Plus, in addition to the actual search query, a search engine may consider other relevant data to help it decide how to rank the results, including the searcher’s:

  • Physical location. Are they at the mall? 
  • Detected language. A query in Spanish deserves search results in Spanish.
  • Earlier search history. Were they looking for the same type of thing earlier, only in a different brand or model?
  • Type of device. Are they on their mobile phone?

Identifying searcher intent

For every search engine out there, the key is deciphering the gist of what the searcher intends to find out. Are they trying to simply learn about Canada’s geography, or are they interested in booking a cross-Canada train trip? Do they want to know about the Check engine light because their car overheated and they’re stuck on a freeway median, or because they’re just curious about what could go haywire if they forget to schedule a recommended tune-up? What’s the user intent?

So the search engine is kind of like a psychic trying to read the searcher’s mind, only it’s more like a scientist going through a rigidly ordered checklist (as fast as possible).

As the search engine is comparing records and figuring out rank, it’s asking itself questions like:

Is there a typo in the query? If so, one or multiple?

What does the number of typos have to do with rank? The fewer typos, the better:

  • If there aren’t any typos in the query, the page content ranks higher as a match than if there’s a typo
  • Content generated for queries with one typo ranks higher than that generated by a two-typo query
  • What if the user is a sloppy query enterer and there are (horrors) three typos? Well, they would be out of luck and get zero results because simple textual matching doesn’t correct spelling.

Does the query match on the first letter? Does it match the whole word or only partially?

In prefix search, the search engine compares the whole query with the beginning characters in the attributes of a record in the index. For example, it compares be with best and beatles. But it doesn’t break up the query and search for b, then be, for instance. 

Relevant results are generated as snippets indicating how the query matches phrases that appear in the content.

The records are ranked as having stronger or weaker relevance, which determines the order of the search results starting on the first page. 

Query context also plays a role. To asses the context, the search engine asks itself questions like these:

Does a word in the query match a synonym?

If it does, the search engine will treat the record with the synonym as equal in the ranking process. For example, if the available content contains tights but the searcher asked for leggings, they’ll see search results for both.

Does the query match the title of a record or its description?

With searchable attributes, items whose titles match the query rank higher than items that match on the description.

Is one item more popular than another?

If you have three records that all match perfectly, then the search engine uses custom ranking to add “business metrics” such as prioritizing the one with the most sales, the one most searched for, or the most popular. If two records match differently, then other criteria determine the ranking.

When a competent search engine finishes wracking its index brain and methodically answering all these types of questions, it comes up with its list of relevant search results. The SERP really does look like the handiwork of a psychic scientist. More importantly, the search engine does the critical job of steering the searcher to a web destination, enlightening them with the answer to their pressing question, or pointing them to where they can buy a product.

For example, here’s a great answer from Google to the pressing query “What is the meaning of life?”

One last query: How does Algolia’s search engine rank?

Answer: As a fast, advanced search engine, it’s way up there. Our advanced search API powers billions of search queries for thousands of global companies, instantaneously delivering relevant results (in less than 100 ms).

One reason our customers love it: we use a tie-breaking algorithm to ensure that the best search-result matches appear first. As an added bonus, our search features are transparent. There are no secrets or complicated formulas; you can see the methodology and criteria being employed to find and rank your content. And you can easily configure your search parameters for your company’s specific needs. 

Ready to find out more? Ask for a free demo of our search engine and we’ll be happy to show you what you can do!

About the author
Catherine Dee

Search and Discovery writer

linkedin

Recommended Articles

Powered byAlgolia Algolia Recommend

What is search relevance in the era of browsing, discovery, and recommendations?
product

Peter Villani

Sr. Tech & Business Writer

How ecommerce search engines handle different types of queries
e-commerce

Jon Silvers

Director, Digital Marketing

What is search relevance?
product

Jon Silvers

Director, Digital Marketing