Skip to main content

Semantic Search and Intent-Based Systems

13 min readSeptember 10, 2025
AI-powered semantic search with Meilisearch

Introduction: From Keywords to Intent

For a long time, digital search has been limited to pure text matching. When a user enters a search term, the system has traditionally only looked for identical character strings in a database. This lexical model is fast, but lacks understanding. It falls short when the user and the online store use different words for the same thing (synonymy), or when a word can mean different things depending on context.

The consequence is that customers encounter an empty page – not because the product is missing, but because they used the "wrong" word. For online retailers, such zero results mean millions in lost revenue every single year.

Now we're seeing a technological shift. With the arrival of semantic search and vector databases, we're moving from matching characters to understanding user intent. This is no longer technology reserved for the giants, but off-the-shelf solutions that power everything from precise chatbots to intelligent recommendation engines. In 2026, this is the difference between being a passive archive and an active, helpful sales assistant.

This article is a technical and strategic overview of how modern search technology can elevate the user experience. We use Meilisearch as an example to show how the architecture behind vector search and hybrid ranking works in practice, and how you can build next-generation search solutions with frameworks like Laravel.

The Technology Behind: From Words to Meaning

To understand why semantic search is a revolution, we must first look at the limitations of the traditional way of searching.

The Lexical Gap

Traditional search engines rely on an inverted index. If you search for "car", the engine scans the database for this exact letter combination. If a document only contains the word "vehicle", it becomes practically invisible to the search engine. This phenomenon is called the lexical gap.

In an online store, this is critical. A customer searching for "warm winter jacket" might get no results for a "lined parka", even though that's exactly what they're looking for. Lexical search requires the customer to guess the exact words the product text uses. Semantic search removes this guessing game by understanding the meaning behind the words.

Vectors: Language as Geometry

The solution lies in the use of vectors (embeddings). Advanced machine learning models, such as OpenAI's text-embedding-3, convert text, images, or audio into long sequences of numbers – so-called vectors.

Imagine an enormous, multi-dimensional map. On this map, the words "cat" and "dog" are placed close to each other because they share conceptual properties (pets, four legs, fur). The word "car" ends up in a completely different "neighborhood" on the map.

When a user performs a search, the query is converted to a coordinate in this landscape. The system then looks for the nearest points ("Nearest Neighbor Search"). This is what allows a search for "something to sit on" to automatically return "chair", "sofa", and "stool" – without you having to define these synonyms manually.

Meilisearch: Architecture Built for Speed

In the landscape of search technologies, Meilisearch has established itself as a specialized challenger to market leader Elasticsearch. While Elasticsearch (based on Java) is the preferred tool for heavy log analysis and big data, Meilisearch (written in Rust) is designed with one goal in mind: to deliver lightning-fast, relevant search results directly to the end user.

Why Choose Meilisearch?

Rust and predictable performance: By avoiding the Java Virtual Machine (JVM) and its associated memory management pauses ("garbage collection"), Meilisearch delivers extremely stable response times, often under 50 milliseconds. This stability is absolutely crucial for delivering "search-as-you-type" experiences without delays.

Hybrid search in one core: Meilisearch integrates vector search directly into its core. This eliminates the need to operate two separate systems – one for text and one for vectors. The result is a hybrid model that gives you the best of both worlds: the precision of traditional keywords and the contextual understanding of AI.

Cost-effective scaling (Disk-based HNSW): Many vector databases require the entire index to be loaded into expensive memory (RAM) to be fast enough. Meilisearch, however, uses a custom implementation of the HNSW algorithm (called Hannoy) that is optimized to run efficiently directly from disk. This significantly reduces operational costs, as you don't need enormous amounts of RAM for large datasets.

Performance Comparison: A Quantum Leap

Meilisearch recently completed a full rebuild of its vector engine, moving from a tree-based structure (Arroy) to a graph-based structure (Hannoy). The numbers below illustrate the effect of this modernization:

The reduction in search latency from 227 ms to 13 ms is the difference between an application that feels sluggish and one that feels instantaneous.

Hybrid Search: The Best of Both Worlds

The weakness of pure vector search is that it can become too smart. If a customer searches for a specific part number, for example "XJ-900", a pure vector search might return "XJ-800" because the products are semantically similar. In such cases, precision is more important than understanding. This is where hybrid search becomes crucial.

How the Hybrid Algorithm Works

Meilisearch combines results from traditional keyword search (BM25) and modern vector search. The challenge is that these systems speak different languages: BM25 might give a relevance score of 45.0, while vector search gives a score between 0 and 1 (e.g., 0.9).

To reconcile these, Meilisearch uses a normalization technique (affine transformation) that makes the scores comparable before merging them. This is a significant improvement compared to many competitors who use a simpler method called Reciprocal Rank Fusion (RRF). While RRF only looks at what order the results come in, Meilisearch preserves information about how good the match actually was. This produces a more accurate final list.

Semantic Ratio: You Decide the Mix

A unique advantage of Meilisearch is the semanticRatio parameter. This functions in practice as a "slider" between 0.0 (pure text search) and 1.0 (pure AI search), allowing you to fine-tune the strategy based on use case:

  • For online stores (e.g., 0.3): Here, product names and specifications are often most important. A low ratio ensures we match exactly on search terms, while still catching synonyms and typos via the vectors.
  • For support bots (e.g., 0.9): Here, users often ask vague questions ("how do I fix the thingy?"). A high ratio lets the AI take control to understand context and intent, rather than looking for verbatim matches. This is something we like to A/B test to find the optimal setting.

Use Cases and Commercial Value

Technology has little value until it actually solves a problem. Here are three concrete use cases where intent-based search delivers measurable gains in the form of increased sales, lower costs, and better customer loyalty.

E-commerce: Avoid Zero Results and Increase Average Order Value

Data from Baymard Institute shows that 42% of major online stores don't support thematic searches (e.g., "spring jacket for men" instead of just "jacket"). When we know that about 30% of visitors use the search field, and that these have 2–3 times higher purchase intent than those who just browse, it's critical to meet them the right way. A zero-results response is essentially an invitation to visit a competitor.

  • Bookshop.org: The online bookstore found that users often searched for concepts rather than titles (e.g., "blue book about a wizard"). Traditional search returned no results. By switching to Meilisearch with semantic search, they increased the conversion rate from search by 43%. The system connected the vague description to Harry Potter through context, not just keywords.
  • Etsy: Etsy implemented their own semantic search engine to handle aesthetic searches like "boho chic decor". The result was a significant increase in conversion and sales, generating hundreds of millions of dollars in additional annual revenue. Customers simply found products they didn't know the name of.
  • Walmart: When an item is out of stock, Walmart uses vector search to understand what the product is, so they can suggest a relevant replacement. Instead of losing the sale, they show another item that's close in "semantic space". This has drastically reduced lost revenue during stock shortages.

RAG: Chatbots That Cut Costs and Increase Efficiency

Retrieval-Augmented Generation (RAG) is changing the game for customer service. By letting a language model (ChatGPT, Gemini, Claude) search the company's own data before responding, you eliminate "hallucinations" and ensure precise answers. This moves AI from being a simple "chatbot" to a valuable team member.

  • Klarna: Klarna is perhaps the most well-known example of RAG in 2024. Their AI assistant handled 2.3 million conversations (two-thirds of all inquiries) in the first month. It now does the work equivalent to 700 full-time employees, resolves cases in 2 minutes (down from 11 minutes), and is expected to improve the bottom line by $40 million annually.
  • Morningstar: The financial services company Morningstar developed "Mo" – an internal assistant for analysts. Instead of spending hours searching through thousands of PDF reports, analysts can ask "What is the risk analysis for company X?". The system retrieves relevant sections from internal databases and summarizes the answer. This frees up enormous amounts of time for actual analysis rather than information retrieval.

Recommendations: The Solution to the "Cold Start" Problem

Traditional recommendation engines ("Customers who bought this also bought...") depend on history. They work poorly on new products – a problem known as "Cold Start". Vector search solves this by analyzing the product's content (image, text, attributes) rather than user behavior.

  • Spotify: Although Spotify uses a lot of user data, their recommendations are also based on semantic understanding of audio files and lyrics. This allows them to recommend a brand new song from an unknown artist to you, simply because the song's profile (tempo, mood, genre) resembles what you like. This keeps users in the app longer.
  • IKEA: IKEA uses visual AI and vector search to recommend products that match stylistically. If you're looking at a sofa, the system can find pillows and rugs that match the sofa's color and texture. Such recommendations often increase average order value by 10–30% because customers are inspired to buy a complete style.
  • Meilisearch: Technically, this is solved via the /similar endpoint. An online store can immediately show "Similar products" for an item that was added 5 minutes ago. This ensures new products get exposure from day one, without waiting weeks for click data.

Technical Implementation

1. For Custom Solutions (Laravel & PHP)

PXL has deep expertise in Laravel, and here the integration is seamless. Through the Laravel Scout package, we have full control over the search logic right in the code. This allows us to tailor an advanced, hybrid search that's adapted to your unique needs – down to the smallest detail.

Example: Enabling Hybrid Search

Setting up hybrid search in Laravel is efficient, but requires going a bit deeper than the standard setup to leverage the AI power. Here we instruct the engine to weight keywords and semantic understanding equally (0.5):

2. For WordPress and WooCommerce

For online stores on WooCommerce, it's about breaking free from the limitations of the database. Standard WordPress search puts heavy load on the SQL server and often delivers irrelevant results.

Instead of relying on standard functionality, we implement Meilisearch as a dedicated search engine running parallel to the online store. We connect directly to the API to completely offload the server. This provides an immediate speed boost and access to features like spelling correction ("did you mean...?") and semantic understanding – functionality that usually requires much heavier enterprise platforms.

3. As a Pure Microservice

In larger architectures, we often run Meilisearch as an isolated service. This means we can have a mobile app (iOS/Android) and a website talking to the same search engine. Since Meilisearch is language-agnostic, we can build lightning-fast frontends in JavaScript (Vue, React, Next.js) while the backend handles the data flow.

Security in Focus: Tenant Tokens

Regardless of platform, data security is critical, especially in B2B solutions (SaaS) where Customer A must never be able to search Customer B's data.

Meilisearch solves this elegantly with Tenant Tokens. Instead of giving the frontend application full access, the backend generates a signed key containing hardcoded rules (e.g., tenant_id = 1). Meilisearch then guarantees, at the engine level, that the search only occurs within that customer's data. This eliminates the risk of data leakage through the search field.

The Future is Multimodal: When Images Say More Than Words

We are now entering a phase where the search field is no longer limited to text. Meilisearch supports multimodal search, a technology that blurs the line between text and images.

This solves a classic problem in e-commerce: How do you describe a style or aesthetic with words?

  • How it works: A user uploads an image of a chair they like, but which might be too expensive or the wrong color.
  • Vectorization: The system uses an AI model (like CLIP) to "see" the image and convert the visual expression into a vector.
  • Result: Meilisearch immediately finds products in your database that have the same shape, style, or expression as the image, completely independent of whether the product name is similar.

This opens up revolutionary user experiences in industries like fashion, interior design, and real estate, where the visual often outweighs the technical.

Conclusion

Semantic search has evolved from a technological curiosity to a necessity for modern digital solutions. The ability to understand the user's actual intent – across typos, synonyms, and languages – is in many cases the key to converting a visitor into a customer.

For businesses, technologies like Meilisearch represent an opportunity to offer search experiences on par with the international giants, but at a fraction of the price and complexity. Whether it's about smarter online stores, precise chatbots, or automated recommendations, intent-based search is the bridge that connects user needs with business value.

At PXL, we help you build this bridge. We combine extensive experience in system architecture and modern web development with expertise in AI and search technology. We adapt the tools to your needs – regardless of which platform you use today – and deliver solutions that don't just work technically, but actually understand your customers.