Back to all articles
AI
14 min read
2026-08-18

Meilisearch vs Vector Search: Which Should You Use?

Compare keyword, vector, and hybrid search to choose the right retrieval architecture for knowledge systems, AI applications, and enterprise search.

Alfredo Gemilang
Alfredo Gemilang Founder & Lead Engineer · ALTIA DEV Studio
Meilisearch vs Vector Search: Which Should You Use?

When a team starts building an AI-powered knowledge system, one architecture question appears quickly:

Should we use a traditional search engine or vector search?

The question sounds straightforward, but the comparison is slightly misleading.

Meilisearch and vector search are not necessarily competing categories.

Meilisearch is a search engine that provides full-text search and also supports vector and hybrid retrieval capabilities. Vector search is a retrieval technique based on semantic similarity. Modern search systems can combine both approaches.

So the more useful question is:

What kind of retrieval does your application actually need?

If users frequently search for exact names, codes, product identifiers, policy numbers, or technical terms, keyword matching can be extremely valuable.

If users describe what they want using different words from those used in the source content, semantic retrieval can become much more useful.

And if the application needs both, hybrid search may be the better architecture.


The Wrong Question to Start With #

A common architecture discussion starts like this:

"Should we use vector search because this is an AI project?"

That is backwards.

Start with the users.

Ask:

flowchart TD
    A["What do users search for?"] --> B["How do they phrase queries?"]
    B --> C["What makes a result relevant?"]
    C --> D["How precise must the result be?"]
    D --> E["What filters and permissions apply?"]
    E --> F["Select retrieval architecture"]

Only then should the retrieval architecture be selected.

This matters because search is not just a technology choice.

It is part of the product experience.


How Keyword Search Works #

Keyword search retrieves documents based primarily on the terms contained in the query and indexed content.

Imagine a knowledge base containing:

  • Customer Eligibility Policy
  • Corporate Account Procedure
  • Individual Customer Procedure
  • Customer Verification Guide
  • A user searches:

    CODE
    customer verification

    A keyword-oriented search system can directly identify documents containing those terms.

    This is particularly useful when the exact vocabulary matters.

    Examples include:

  • product codes
  • policy numbers
  • names
  • technical terms
  • legal references
  • error codes
  • SKUs
  • abbreviations
  • Keyword search has another important property:

    It is easy for users to understand why a result matched.

    If the user searches for:

    CODE
    ERR-402

    they generally expect documents containing ERR-402 to be highly relevant.

    Semantic similarity is not necessarily better for that type of query.


    How Vector Search Works #

    Vector search approaches retrieval differently.

    Instead of primarily asking:

    "Does this document contain these words?"

    the system represents content and queries as vectors and searches for items that are close in the resulting vector space.

    Conceptually:

    flowchart TD
        subgraph Indexing
            A[Document] --> B[Embedding] --> C[Vector]
        end
        subgraph Querying
            D[Query] --> E[Embedding] --> F[Vector]
        end
        F --> G[Similarity Search]
        C --> G
        G --> H[Relevant Results]

    This allows a search to find conceptually related content even when the wording differs.

    For example, a user might search:

    CODE
    How do I become eligible for a corporate account?

    while the source document might use:

    CODE
    Corporate customer qualification requirements

    The words are different.

    The meaning is related.

    That is where semantic retrieval can be useful.


    Where Keyword Search Wins #

    Keyword search is still highly relevant.

    It is often the better choice when the query contains information that should be matched precisely.

    1. Exact Identifiers #

    Examples:

    CODE
    INV-2026-00481
    ERR-402
    SKU-AX91
    POLICY-17

    Exact matching matters more than semantic similarity.

    2. Names and Proper Nouns #

    Examples: MARS Outbound, CRM, QMS, Laravel, Meilisearch.

    If the user explicitly knows the name, returning semantically similar concepts is not necessarily helpful.

    3. Technical Terms #

    Technical documentation often contains vocabulary that should remain precise.

    For example: OAuth, SAML, SMTP, DNS, Laravel, PostgreSQL.

    A semantic search engine can understand relationships between concepts, but the exact term may still be the strongest retrieval signal.

    4. Filtering and Structured Retrieval #

    Business search often involves more than relevance.

    Users may need:

    CODE
    Project = A
    Category = Policy
    Status = Published
    Date > 2026-01-01

    This means the retrieval system must work with structured metadata and filtering as part of the overall experience.


    Where Vector Search Wins #

    Vector search becomes attractive when the user does not know the exact vocabulary used by the source documents.

    1. Natural-Language Queries #

    Consider:

    CODE
    How can I check whether a new customer is eligible?

    The source might say:

    CODE
    Customer qualification criteria

    A semantic retrieval system can bridge the vocabulary difference.

    2. Conceptual Discovery #

    Users sometimes know the problem but not the terminology.

    For example:

    CODE
    How do we handle customers who don't have all the required documents?

    The knowledge base may contain a section called:

    CODE
    Incomplete Documentation Procedure

    A keyword search may have less overlap.

    Semantic retrieval can potentially identify the conceptual relationship.

    3. Knowledge Discovery #

    Vector search is useful when users are exploring a topic rather than looking for a known item.

    This is particularly relevant for knowledge systems where users may ask questions in natural language.


    What Hybrid Search Changes #

    The choice does not have to be:

    CODE
    Keyword OR Vector

    It can be:

    CODE
    Keyword + Vector = Hybrid

    Hybrid search combines lexical matching with semantic retrieval. Meilisearch currently describes hybrid search as combining keyword precision with semantic understanding and provides controls for balancing the two approaches.

    Conceptually:

    flowchart TD
        A[Query] --> B[Keyword Search]
        A --> C[Vector Search]
        B --> D[Ranked Results]
        C --> D

    This can be useful because real search behavior is mixed.

    One user might search:

    CODE
    QMS

    while another might ask:

    CODE
    What procedure explains quality management requirements?

    The first query benefits heavily from lexical precision.

    The second benefits more from semantic understanding.

    A hybrid system can support both patterns.


    This distinction is important.

    The comparison "Meilisearch vs Vector Search" can imply that one replaces the other.

    That is not necessarily true.

    Meilisearch supports full-text search and also provides vector and hybrid search capabilities.

    So the more accurate comparison is:

    flowchart LR
        A[Full-Text Retrieval] --- D[Choose based on requirements]
        B[Vector Retrieval] --- D
        C[Hybrid Retrieval] --- D

    with Meilisearch being one possible platform for implementing these retrieval patterns.

    This is a much more useful architectural discussion.


    A Practical Decision Framework #

    Instead of choosing based on trends, use a decision matrix.

    RequirementKeywordVectorHybrid
    Exact identifiersExcellentWeakExcellent
    Exact terminologyExcellentVariableExcellent
    Typo toleranceStrongNot the primary purposeStrong
    Meaning-based retrievalLimitedStrongStrong
    Natural-language queriesVariableStrongStrong
    Known-item searchExcellentVariableExcellent
    DiscoveryLimitedStrongStrong
    Structured filtersStrongDepends on architectureStrong
    Implementation simplicityStrongMore componentsModerate
    Need for semantic modelNoYesYes
    Need for lexical precisionYesNot necessarilyYes

    The table is intentionally directional rather than absolute.

    The quality of each approach depends on the implementation, data, ranking strategy, and query patterns.


    A Better Architecture Question #

    Rather than asking:

    "Which search technology is best?"

    ask:

    "Which retrieval signals matter for our users?"

    For example:

    Scenario A: Internal Documentation #

    Users search:

    CODE
    SMTP configuration
    SSO setup
    DNS configuration

    Keyword search may already solve a large part of the problem.

    Scenario B: Large Knowledge Base #

    Users ask:

    CODE
    What should an employee do when a customer cannot provide the required documents?

    Semantic retrieval becomes more attractive.

    Scenario C: Enterprise Knowledge System #

    Users search both:

    CODE
    QMS

    and:

    CODE
    What process handles quality management requirements?

    Hybrid retrieval becomes a strong candidate.


    Search Architecture Is Also an Information Architecture Problem #

    There is another lesson that often gets missed.

    Search quality does not begin at the search engine.

    It begins with the data.

    If the knowledge system contains:

  • Title
  • Category
  • Content
  • Project
  • Status
  • Metadata
  • then the retrieval system has more meaningful signals to work with.

    This connects directly to the previous article:

    How to Turn Complex PDFs into Structured Knowledge

    The pipeline was:

    flowchart TD
        A[PDF] --> B[Understand]
        B --> C[Structure]
        C --> D[Review]
        D --> E[Publish]
        E --> F[Search]

    The quality of the search layer depends partly on what happens before the search query is executed.

    Better structured knowledge creates better retrieval opportunities.


    A Real-World Example #

    In an enterprise knowledge management system we built, the platform used Laravel with Meilisearch as its search layer.

    The system was designed around multiple projects, with each project having its own users and knowledge context.

    Conceptually:

    flowchart TD
        A[Organization] --> B[Project A]
        A --> C[Project B]
        B --> D[Users]
        B --> E[Knowledge]
        C --> F[Users]
        C --> G[Knowledge]

    The platform also included an AI-assisted document workflow:

    flowchart TD
        A[PDF] --> B[Read]
        B --> C[Understand Structure]
        C --> D["Generate Title / Category / Content"]
        D --> E[Admin Review]
        E --> F[Publish]

    The important engineering lesson here is not that one particular search technology is universally correct.

    It is that retrieval has to fit the knowledge model and the user workflow.

    The project used Meilisearch as the search layer because search was one component of a larger application architecture.

    That is the kind of decision that should be made from system requirements rather than from the label "AI."


    Common Architecture Mistakes #

    1. Adding Vector Search Because the Product Uses AI #

    An AI feature does not automatically require vector search.

    Ask what users actually need to retrieve.

    2. Assuming Semantic Search Is Always Better #

    Semantic relevance can be extremely useful.

    But if a user searches for:

    CODE
    ERR-402

    finding a conceptually related error is not necessarily better than finding the exact identifier.

    3. Ignoring Exact-Match Signals #

    Names, identifiers, codes, technical terms, and policy references can carry strong lexical signals.

    Do not throw those signals away simply because semantic search is available.

    4. Evaluating Search Without Real Queries #

    A search architecture should be tested against realistic user queries.

    Create a small evaluation set:

  • Known-item queries
  • Exact-term queries
  • Natural-language queries
  • Ambiguous queries
  • Misspelled queries
  • Filter-heavy queries
  • Then compare retrieval quality.

    5. Choosing the Database Before Defining Retrieval #

    Search is not just a storage decision.

    First define: What is a relevant result?

    Then design the retrieval architecture around that definition.

    6. Ignoring Permissions #

    Enterprise knowledge systems often have multiple projects, users, and content boundaries.

    A search result is only useful if the user is actually allowed to access the underlying knowledge.

    Retrieval and authorization therefore need to be designed together.


    What We Would Recommend #

    For a new knowledge system, do not start with vector search by default.

    Start with a query taxonomy.

    Collect representative queries and classify them:

  • Exact
  • Known Item
  • Natural Language
  • Semantic
  • Discovery
  • Filtered
  • Ambiguous
  • Then evaluate which retrieval signals each class needs.

    A practical progression can be:

    flowchart TD
        A["Phase 1: Full-Text Search"] --> B[Measure real queries]
        B --> C[Identify semantic gaps]
        C --> D["Phase 2: Add Semantic Retrieval"]
        D --> E[Evaluate Hybrid Search]
        E --> F["Phase 3: Tune Ranking"]

    This approach keeps the architecture driven by evidence.


    When I Would Choose Each Approach #

    Choose Keyword Search When #

  • users know the terminology
  • exact identifiers matter
  • content is highly structured
  • queries are relatively predictable
  • filters are important
  • the system does not need semantic discovery
  • Choose Vector Search When #

  • users frequently describe concepts rather than exact terms
  • source and query vocabulary differ substantially
  • semantic discovery is important
  • natural-language retrieval is a core requirement
  • Choose Hybrid Search When #

  • both exact terms and semantic meaning matter
  • users have mixed search behavior
  • the knowledge base contains technical identifiers as well as natural-language content
  • you need both lexical precision and semantic recall
  • The third option is increasingly important because real-world search behavior rarely fits into one category.


    Conclusion #

    The question is not:

    Meilisearch or vector search?

    The better question is:

    What kind of relevance does your application need?

    Keyword retrieval is great when exact terms matter.

    Vector retrieval is useful when meaning matters more than wording.

    Hybrid retrieval combines both when users need both signals.

    And Meilisearch should not be framed as the opposite of vector search. Modern Meilisearch supports full-text, vector, and hybrid retrieval capabilities, so the architecture decision is really about choosing the right retrieval strategy for the application.

    For business knowledge systems, I would start with the users' actual queries, build a small evaluation set, and only add semantic retrieval where it solves a demonstrated problem.

    That keeps the architecture simple where simplicity is enough, and introduces AI where it genuinely improves retrieval.

    Enjoyed this article? Share it with your network:

    Share this article