Learn

Keyword search matches the literal words in a query against the words in documents, while semantic search matches on meaning using vector embeddings, so semantic search finds relevant results that share no keywords with the query and keyword search finds only exact or near-exact word matches.
Last updated: November 25, 2026
Why it matters to your mission. An analyst searching a reporting corpus for "small boat swarm near the strait" with a keyword engine gets back only the documents that used those exact words. The report that said "multiple fast-attack craft massing off the coast" never surfaces, even though it is the one that matters, because it shares no keywords with the query. Semantic search closes that gap: it matches on meaning, so a query retrieves the reporting that means the same thing in different words, across languages, spellings, aliases, and jargon. The outcome is fewer missed reports an operator never knew existed, instead of a false sense of completeness from an exact-match hit list.
Keyword search matches the literal words in a query against the words in documents, while semantic search matches on meaning using vector embeddings, so semantic search finds relevant results that share no keywords with the query and keyword search finds only exact or near-exact word matches. Keyword search is also called lexical search, after the literal lexicon of terms it matches; semantic search is sometimes called vector search or meaning-based search after the vector embeddings it relies on.
Both answer the same question, "which documents are relevant to this query," but they decide relevance differently. Keyword search decides on word overlap: a document is relevant if it contains the query terms, ranked by how often and how distinctively they appear. Semantic search decides on conceptual closeness: the query and each document are turned into vectors, numeric representations of meaning, and relevance is how near those vectors sit in that space. That single change lets semantic search retrieve a relevant report that uses none of the query's words, and lets keyword search retrieve a report that shares the words but not the meaning.
Key takeaways
Keyword search, also called lexical search, decides relevance by matching the words in a query against the words in a document. The dominant ranking method, BM25, scores a document higher when it contains the query terms more often and when those terms are rarer across the whole collection, a refinement of the TF-IDF idea that distinctive words carry more signal than common ones (see Robertson and Zaragoza, The Probabilistic Relevance Framework: BM25 and Beyond, 2009). Modern lexical engines add stemming, so "running" matches "run," and sometimes a synonym list the administrator maintains by hand.
Lexical search is fast, cheap to run, and exact. When an analyst knows the precise term, a hull number, a program name, a specific phrase, keyword search returns it and nothing muddied by approximation. Its limit is the vocabulary mismatch problem: a searcher and a document author rarely choose the same words for the same thing. If the query says "IED" and the report says "roadside bomb," or the query says "UAV" and the report says "drone," a pure keyword engine finds nothing, because nothing literally matches. The engine cannot be more complete than the words the searcher happened to type.
Semantic search decides relevance by meaning rather than by shared words. A model turns the query and every document into a vector embedding, a list of numbers that places text with similar meaning close together in a high-dimensional space, so "fast-attack craft" and "small boat swarm" land near each other even though they share no words. Retrieval then becomes a nearest-neighbor search: return the documents whose vectors sit closest to the query's vector. The approach rests on the distributional idea that words and passages used in similar contexts carry similar meaning, operationalized in dense retrieval methods such as Dense Passage Retrieval for Open-Domain Question Answering (Karpukhin et al., EMNLP 2020).
Because it matches meaning, semantic search retrieves synonyms, paraphrases, aliases, transliterated names, and cross-language equivalents that a lexical engine never sees. That is exactly the recall an intelligence problem needs, where the same entity appears under different spellings and the same event is described in different words across sources. Its cost is the mirror image of its strength: semantic search can retrieve something conceptually near that is not what you literally asked for, and it needs an embedding model, a vector index, and the compute to build and query them. It is strong on meaning and weaker on the exact, literal match that keyword search handles for free.
Bottom line: keyword (lexical) search matches words and is exact, fast, and blind to synonyms; semantic search matches meaning through vector embeddings and retrieves relevant results that share no keywords, at higher build cost and the risk of approximate matches. The table makes the contrast extractable.
The two are different ways to decide relevance, suited to different question shapes, not rivals. Keyword search answers best when you know the exact term; semantic search answers best when you know what you mean but not the words the author used. On defense and intelligence data, where vocabulary varies by source, service, and language, the gap between "the words I typed" and "the reporting that matters" is exactly where decisions are lost.
| Dimension | Keyword search (lexical / BM25) | Semantic search (vector / embedding) |
|---|---|---|
| What is matched | Literal query words against document words | Meaning of the query against meaning of each document |
| How relevance is decided | Term overlap, weighted by frequency and rarity | Distance between query and document vectors |
| Synonyms and paraphrases | Missed unless a synonym list is maintained by hand | Retrieved natively; meaning is matched, not words |
| Aliases, spellings, languages | Missed; different words do not match | Retrieved; variants map to nearby vectors |
| Recall and precision tradeoff | High precision on exact terms, low recall on varied wording | High recall across varied wording, lower precision on exact literals |
| Exact identifiers and phrases | Strong; returns the precise hull number or part code | Weaker; may return something merely near the identifier |
| Build and maintenance cost | Lower; index the text and rank | Higher; build embeddings and a vector index, maintain the model |
| Explainability | High; you can see which words matched | Lower; a vector distance is not a word you can point to |
| Fit for defense and intelligence data | Partial; blind to the synonym, alias, and cross-language cases | Strong; built to retrieve meaning across varied sources, best paired with lexical for exact terms |
Neither replaces the other. The dominant practice is hybrid retrieval: run both, then combine the result lists so an exact hull number still ranks when searched literally, and "roadside bomb" still surfaces when the query says "IED." The engine is only as trustworthy as the data and the entity resolution beneath it, which is where the harder defense problem actually sits.
<aside class="stat-callout"> The number: In a roughly 79-million-record national database, matching on a person's last name alone produces a false-positive match about 98% of the time. RAND, Identity Crisis: An Examination of the Costs and Benefits of a Unique Patient Identifier, MG-753-HLTH (2008), Chapter 3.[3] Literal attribute matching collapses at national scale: the same word is shared by too many different entities to be a reliable key. It is a plain illustration of why matching on surface tokens alone fails at the scale defense and intelligence data operate at, and why meaning, context, and resolved identity have to carry the load. </aside>
Use keyword search when you know the exact term and want exactly it: a hull number, a program codeword, a specific error string, a quoted phrase. Literal matching is precise, fast, and explainable, and adding meaning-based retrieval would only blur a search that should be exact.
Reach for semantic search when the question is about a concept and the relevant reporting may not use your words. In an intelligence setting that is most of the hard searches: the same entity written with different spellings or aliases, the same event described in different language across sources, the same capability named differently by each service or in each language. These are the cases where a keyword engine returns a clean but incomplete list and the analyst never learns what was missed. In practice most serious systems do not choose; they run hybrid retrieval, keyword search for exact terms and semantic search for meaning, over one governed body of data, so precision and recall are not traded against each other.
Recall, the share of truly relevant documents a search actually returns, is the quiet failure mode of keyword search. An exact-match engine can show a tidy, confident top-ten and still have missed the one report that matters, because that report used different words. The analyst sees results and assumes completeness. On a mission, the document never retrieved is the one that gets an assessment wrong.
Semantic search raises recall precisely on the cases keyword search is blind to: the synonym, the paraphrase, the alias, the transliterated name, the cross-language equivalent. That matters most where data is fragmented across many sources that never agreed on vocabulary, which is the defining condition of defense and intelligence data. The U.S. Government Accountability Office, examining defense command and control in Defense Command and Control: Further Efforts Needed to Realize the Vision for a Joint Warfighting Capability, GAO-25-106454[4] (2025), documented how much of that environment still depends on analysts manually re-keying data from one system into another, so that fragmented information holds decisions back at the scale and tempo commanders need. Retrieval that can find the relevant report regardless of the words it used is part of closing that gap, provided the results stay grounded, governed, and traceable rather than an unexplained ranking an operator has to take on faith.
Torch.AI builds reasoning infrastructure the customer can own and govern, offered as a government-owned (GOTS) deployment when a mission requires it; whether a specific deployment is government-owned or commercial (COTS) depends on the system the customer installs and purchases. Two products map to this topic. NEXUS makes data meaningful, building the semantic representation, vectorization, and Knowledge Domains that let a search match on meaning rather than only on words, so fragmented, multi-source data becomes retrievable by what it means. HALO makes relationships understandable, fusing resolved entities into a graph so that a search for a person or an organization reaches the aliases, spellings, and connected records that belong to the same real entity, not just the string that was typed. You can see how this is packaged as a capability on the Torch.AI software page.
The result is retrieval that combines lexical precision with semantic recall over multi-source data, with every result tied back to its source reporting and its original classification preserved. This is the systems of record versus systems of reason distinction at the center of Torch.AI's approach: the reasoning layer sits on top of the customer's existing systems of record, complementing them rather than replacing them, so the authoritative sources stay intact and interoperable instead of being locked inside a vendor's proprietary semantic model. For a closely related comparison, see vector search vs. keyword search and semantic search vs. vector search; for how meaning-based and graph-based retrieval relate, see GraphRAG vs. RAG for intelligence analysis and the pillar on knowledge graphs versus vector databases.
Evaluating a capability? The seven requirements above are the backbone of an evaluation you can score against. Bring them to a scoping call and we will walk each one against your environment: request a technical walkthrough.
Keyword search, also called lexical search, decides relevance by matching the literal words in a query against the words in documents, usually ranking results with BM25, which weights terms by how often and how distinctively they appear. It is exact and fast but misses documents that use different words for the same thing.
Semantic search decides relevance by meaning rather than shared words, turning the query and each document into vector embeddings and returning the documents whose vectors sit closest to the query's, so it retrieves synonyms, paraphrases, aliases, and cross-language equivalents that keyword search misses.
Keyword search matches literal words and is exact, fast, and blind to synonyms; semantic search matches meaning through vector embeddings and retrieves relevant results that share no keywords with the query, at higher build cost and some risk of approximate matches.
Use keyword search when you know the exact term you want, such as a hull number or a specific phrase, and semantic search when the question is about a concept and the relevant reporting may not use your words. Most serious systems run both as hybrid retrieval over the same data.
Semantic search raises recall on exactly the cases keyword search is blind to, the synonym, paraphrase, alias, and cross-language versions of a query, so the relevant report that used different words still surfaces instead of being silently missed behind a clean but incomplete exact-match list.
No. For exact identifiers, part numbers, and precise phrase matching, keyword search is more precise, cheaper, and more explainable. Semantic search can return something merely near the query. The dominant practice is hybrid retrieval that runs both over the same governed data.
Describe the problem.
Define the constraints. We will structure the session.
No demo.
No slide deck.
Real work.
Describe where your analysts lose reporting. We will structure the session around your sources and your data. No demo. Your mission data. Real work.