Live Webinar · Aug 10 Gen AI for In-House Counsel: how we post-train an LLM to run Document Review at under 5¢/document. Save Your Seat →
Search

Keyword Search in DecoverAI: The Complete Operator Reference

Boolean operators, phrase matching, proximity, and wildcards — the full reference for the search bar's exact-match mode.

April 11, 2026
Ravi TandonBy , CEO & Co-founder  ·  9 min read

DecoverAI's Keyword mode lets you run exact-match searches across your case files using the same Boolean operators you already know from Relativity, Everlaw, and Westlaw. When Keyword is on, we bypass semantic search, embeddings, and AI query rewriting — you get back every document where your terms literally appear, in the combination you asked for, nothing more.

Use Keyword when you want precision. Use Smart (the default) when you want the system to interpret your question and bring back semantically related answers even if they don't share words with your query.

Turning Keyword search on

In the search bar, click the Smart / Keyword toggle and select Keyword. The bar stays in Keyword mode until you switch it back. When Keyword is active, you can paginate through matches and see an exact match count — "About 142 results" rather than a capped preview.

Operator quick reference

You typeWhat it does
john ruffinoBoth words must appear (implicit AND)
john AND ruffinoSame as above, explicit
john OR janeEither word appears
john, janeComma is a shortcut for OR
john NOT ruffino'john' must appear, 'ruffino' must not
(john OR jane) AND depositionParentheses group expressions
"expert witness"Exact phrase match (words in order, adjacent)
"expert witness"~3Proximity: within 3 words of each other, in order
deposit*Wildcard: deposit, deposition, depositions, etc.
wom?nSingle-character wildcard: woman, women
john W/3 ruffinoNEAR: within 3 words of each other, any order
john W/5 james W/5 ruffinoNEAR chain: all three within 5 words of each other

Operator details

Boolean operators

Phrases and proximity

Wildcards

NEAR (W/N) — proximity with flexible order

NEAR is the operator to reach for when two or more words should appear near each other but you don't care which comes first. This is how Relativity, Westlaw, and LexisNexis users are used to finding things like 'breach somewhere near duty'.

Worked examples

Find every doc where both names appear:
john ruffino
Find the exact phrase 'medical expert report':
"medical expert report"
Find documents mentioning either attorney, but only within Depositions:
(smith OR jones) deposition
Find documents where 'breach' and 'duty' appear within 5 words of each other, any order:
breach W/5 duty
Find any variation of 'deposition' alongside 'objection' within 10 words:
deposit* W/10 objection
Exclude documents that mention settlement:
damages NOT settlement
Find paragraphs where 'ischemic' and 'stroke' appear close together in any order, anywhere in the same document with the phrase 'cognitive disability':
ischemic W/3 stroke AND "cognitive disability"

Results, pagination, and counts

Tips and gotchas

Not supported (yet)

If your workflow needs one of these, let the DecoverAI team know and we'll prioritize it.

Frequently Asked Questions

When should I use keyword search instead of AI review in DecoverAI?

Keyword search is the right tool when you need exact-match results — when the presence or absence of a specific term, phrase, or pattern is the legal question. Use it for privilege screenings requiring specific attorney names, regulatory compliance searches requiring exact statutory terms, and identification of documents mentioning specific transactions or parties. AI-powered review is better for responsiveness decisions where the concept matters more than specific wording.

What is the difference between a proximity operator and phrase search?

A phrase search (using quotes) requires words to appear adjacent in exactly that order. A proximity operator — w/5 for "within 5 words" or pre/5 for "preceding within 5 words" — requires words to appear near each other but allows other words in between. "settlement agreement" finds that exact phrase; settlement w/5 agreement finds "settlement of the indemnity agreement" and similar variants where the words are separated.

How do wildcard operators work in keyword search?

The asterisk (*) wildcard substitutes for zero or more characters at the end of a word root. fraud* finds fraud, fraudulent, fraudulently, and fraudulence. The question mark (?) substitutes for exactly one character — wom?n finds woman and women. Wildcards capture spelling variants and word forms without listing every alternative, but require a root specific enough not to generate excessive unrelated hits.

Can I limit a keyword search to a specific metadata field in DecoverAI?

Yes. Field-scoped search restricts a query to a single metadata field. from:counsel@firm.com limits results to emails from that address. subject:"board resolution" limits results to documents with that phrase in the subject. You can combine field-scoped terms with Boolean operators: (from:ravi OR from:amin) AND subject:acquisition finds emails from either sender with "acquisition" in the subject line.

Ready to search your case files with precision and intelligence?

See how DecoverAI combines exact-match Keyword search with semantic Smart search in one workspace.

Book a Demo →