Query syntax reference

Use these expressions in Exact query. The website demo searches fictional text. Desktop also searches document metadata.

Terms and functions

contract and "cobalt invoice"
Search a word or consecutive words. Quote phrases containing operator words. Phrases ignore punctuation and stay within a paragraph. Straight and curly double quotes are accepted. Try the phrase.
terminat*, terminat!, wom?n
* matches any suffix or interior run. Final ! is its unquoted legal-search alias. ? matches one character.
FUZZY[indeminty,1]
Allow a spelling edit, including a neighboring letter swap. Omit the number for a length-based default or specify 0–4. Try spelling variants.
FIRST[100](notice) and LAST[100](signature)
Evaluate the expression within the opening or closing searchable words of the document.
NUM[10000..50000]
Match an inclusive numeric range in text. Signed decimals and comma-grouped thousands are supported. Use it with proximity, for example invoice NEAR 8 NUM[10000..50000].
STEM[pay] and SYN[damage]
Match inflected forms or listed synonyms. Desktop, MCP and the extension panels use the bundled English thesaurus. Explain lists the alternatives used in Desktop. The public demo has no synonym dictionary. Desktop’s selected search language controls stemming.
/\d{4}-\d{2}/ and REGEX(\d{4}-\d{2})
Match a regular expression. Escape a slash with a backslash in slash form. All four functions accept square brackets or parentheses.
PHONETIC[smith]
Find English sound-alike spellings such as “Smith” and “Smyth” using Soundex.
WEIGHT[apple,4] OR pear
Give “apple” more influence on Desktop’s Best first order. The weight leaves match membership unchanged.
SAVED[Delivery clauses] AND notice
Reuse a single, saved Desktop exact expression inside a larger query. A saved chain can also be run step by step using the saved-search interface.

Proximity

a NEAR 5 b
Within five words in either order. Default 3. Aliases include /5, W/5, NEAR/5, and WITHIN 5 WORDS.
a ADJ 3 b
Within three words in that order. Default 1. Aliases include +3, ADJ/3 and PRE/3.
a S b, a P b
Same sentence or paragraph. S 2 and P 2 allow distance two. Aliases include /s, W/S, /p, W/P, PARA, WITHIN 2 SENTENCES, and WITHIN 2 PARAGRAPHS. Use +s or +p for ordered matching. Try same-sentence search.
a NOT 3 b
Find an occurrence of a only if b is outside that word distance on both sides.

Boolean and grouping

OR or || matches either term. AND, & or && requires both anywhere in the document. XOR or ^ requires exactly one. NOT, BUT NOT, % or standalone ! excludes documents with the second term. Use parentheses to group expressions. Try AND.

Search within a passage, slide, sheet or page

IN[paragraph](renew* BUT NOT automatic*) finds renewal wording in paragraphs that omit “automatic”. A different paragraph can still mention automatic renewal. Replace paragraph with sentence or document to change the boundary.

Desktop also recognizes page for PDFs, slide for presentations, and sheet for workbooks when the reader supplies those divisions. For email, use subject, body or attachment. An unavailable region yields zero hits.

IN[slide](ATLEAST[2](audit, inspection, "books and records")) requires two listed clauses on one slide. Three occurrences of “audit” satisfy just the first clause.

WINDOW[12](notice, breach, cure) finds all three terms in any order. Count from the first word through the last, including both ends. OUTSIDE(Smith, "Mr Smith") keeps occurrences of Smith outside the specified phrase, including other mentions in the same sentence.

Compare structured values

Use =, !=, <, <=, >, >=, or an inclusive low..high range. A bare value means equality. Enter decimal points in query bounds. Each hit highlights the original wording. Try a currency range on the sample quotation.

MONEY[GBP:10000..15000]
Find £12,500 or GBP 12500.00. Codes supported are GBP, EUR, USD, CAD, AUD, CHF, JPY, CNY and INR. Use MONEY[$:100] for unspecified dollars and MONEY[¥:100] for unspecified yen or yuan. Parenthesized currency amounts count as negative. Document amounts can use comma thousands and a decimal point or a decimal comma with one or two fractional digits.
DURATION[hours:<72]
Compare seconds, minutes, hours, calendar days and weeks. Business or working days form a separate group, as do months and years (12 months). “Forty-eight hours” and “2-day” both match. English whole-number words below one thousand are recognized.
QTY[g:0.5..1]
Find commensurate measurements, such as 500 mg and 0.75 g. Supported mass units are µg, mg, g and kg. Length supports mm, cm, m and km. Volume supports mL and L. Common English unit names also work.
RATE[GBP/hour:>=60]
Find £60/hour or GBP 1 per minute. Both the numerator and the denominator must be compatible. RATE[mg/min:16..17] also finds 1 g per hour.
PERCENT[0.25]
Find 0.25%, 0.25 percent or 25 basis points. Bounds are in percentage points.
CLAUSE[4.2.*] and EXHIBIT[A.*]
Match the named reference or a descendant. Clause 4.2(a) and §4.2.1 match the first example. Section 4.20 falls outside that branch. Omit .* for an exact reference.
VERSION[<2.10.0]
Find complete semantic versions such as 2.9.0 and v2.10.0-rc.2. Precedence compares numeric components and prerelease identifiers. Build metadata has no effect on precedence.
NUM[MULTIPLE 25]
Find whole multiples of a positive integer, including zero and negative multiples. Use INTEGER, FRACTIONAL, ODD or EVEN for number classes. NUM[!=0] finds nonzero numeric occurrences.

Search written ranges and investigation records

DURATION[days:COVERS 45]
Find a written interval containing 45 days, such as “30–60 days”. Use OVERLAPS 30..45 for any intersection or WITHIN 30..45 when the entire written interval fits. Endpoints count. Money, quantities and percentages accept the same operations. “At least” and “up to” introduce one-sided bounds. For calendar intervals, try DATE[COVERS 2026-03-14] on two dates joined by a dash, “to” or “through”.
MONEY[GBP:12500 +/- 2%]
Find £12,250 through £12,750 inclusive. Search Explain displays those bounds. Use ± 250 for an absolute tolerance. Numbers can appear in documents as £12.5k, £1.2 million, ½ kg or 1 1/2 hours.
BATES[ACME:001250..001499] and ID[INV-2025-####]
Bates numbers keep their prefix and digit width. Each # in an identifier stands for one digit. Spaces, underscores and hyphens can separate ID groups. Save either expression and export the investigation profile to take it to another computer.
CITE[UK:2021 EWCA Civ *], CITE[US:347 U.S. 483], CITE[CA:2024 SCC 1]
Search UK and Canadian neutral citations or US reporter citations. Use a final * for any decision number or page, or CITE[CA:*] for any recognized Canadian citation. Canadian SCC and CSC identify the same court. In the reader, choose Find this judgment on a citation hit to reuse it as an exact query. Try all three jurisdictions in the sample corpus.
Citation coverage
UK coverage includes UKSC, UKHL, UKPC, EWCA Civ and Crim, EWHC, EWCOP, EWFC, UKUT, UKFTT, CSIH, CSOH, HCJAC, NICA, NIQB and NIKB. Add a division as in CITE[2009 EWHC * (Mercantile)]. US reporters include U.S., S. Ct., F.2d through F.4th, F. Supp. 2d and 3d, and selected Atlantic, Pacific and North Eastern series. Canada includes SCC/CSC, FCA/CAF, FC/CF, provincial and territorial appeal courts, and selected superior courts. These searches identify citation text in your files. UK citation examples · US Reports citation finder · Canadian neutral citation examples.
TIME[17:00..18:00] and INSTANT[2025-12-31T17:30:00Z]
TIME compares local clock readings such as 5:30 pm. INSTANT compares full timestamps with seconds and a UTC offset, including across midnight. To interpret timestamps lacking an offset, supply a fixed offset explicitly, as in INSTANT[OFFSET=-05:00;2026-01-01T00:30:00Z].

Find typical and unusual values

MONEY[GBP:GAUSS 12500 SD 250 WITHIN 2] includes £12,000 through £13,000 and shows the closest amount first. NEAREST 12500 WITHIN 500 takes the distance in pounds. Try ranking the quotation amounts.

Use GAUSS AUTO WITHIN 2 to measure the active population, PERCENTILE 90..100 for its upper tenth, or OUTLIER MAD 3 for unusual values using median absolute deviation. Each exact occurrence contributes once. Keep currencies and units explicit.

OCR(BATES[ACME:001250]) can recover a printed I in a digit position. TYPO(ID[INV-2025-42]) also considers single edits of a specific ID. Compare the possible reading with the original highlight. Count citation occurrences with COUNT[>=3](CITE[CA:*]) or different judgments with DISTINCT[>=3](CITE[CA:*]).

Find dates in document text

notice NEAR 8 DATE[2026-03] finds notice near a calendar date in March. Use DATE[2026-03-14] for one day, DATE[2026] for a year, DATE[2026-03..2026-06] for an inclusive range, or DATE[*] for any recognized day.

The default display is YYYY-MM-DD. Use DATE[AMBIGUOUS] to review numeric dates with two valid day/month readings. For 03/04/2026, the result shows both 2026-03-04 and 2026-04-03.

DATE[PARTIAL] finds day/month mentions without a year, including “3 April” and “03/04”. DATE[PARTIAL:--04-03] selects yearless text that could mean April 3. DATE[AMBIGUOUS:2026-04-03] selects dated ambiguities with that possible reading. A short numeric pair can also be a fraction or decimal. Read its surrounding passage to decide.

DATE[UK:2026-04-03] reads 03/04/26 as 3 April. DATE[US:2026-03-04] reads it as March 4. Choose your usual order under Query help on Desktop. A prefix overrides that setting for one term. STRICT skips ambiguous day/month pairs. YMD reads a leading two-digit year.

Four-digit leading years always use year/month/day. For year-last dates, a day above 12 resolves the order. Two-digit years 00–49 mean 2000–2049 and 50–99 mean 1950–1999.

Recognized document dates include numeric dates with slashes, hyphens or dots, compact YYYYMMDD, named months in English, French, German, Spanish, Italian, Portuguese and Dutch, and East Asian dates such as 2026年3月14日 and 2026년 3월 14일. ISO week dates, ordinal dates and the calendar part of ISO timestamps also match. Results preserve the spelling in the document. Month-only text such as “March 2026” matches a search covering the whole month. It contributes no hit for a single day.

Reuse a search with different values on Desktop

Save {{phrase:term}} NEAR {{distance:gap}} notice as nearNotice. Enter SAVED[nearNotice|term=delivery date|gap=6]. The preview shows the quoted phrase and the distance used for this run.

Save from:{{phrase:sender}} sent:{{date:start}}..{{date:end}} as mailRange. Start a query with SCOPE[mailRange|sender=Ada Mercer|start=2026-01-01|end=2026-03-31] breach to search that sender’s messages in the inclusive date range.

Use @nearNotice(term=delivery date,gap=6) for a saved expression, or start a Desktop query with @@mailRange(sender=Ada Mercer,start=2026-01-01,end=2026-03-31) for a metadata scope. Omit parentheses for a macro without arguments. In browser and Office panels, assign a Macro name in Saved. Use letters, digits, underscores or hyphens in short names.

For example, save notice NEAR 8 DATE[UK:{{date:start}}..{{date:end}}] as datedNotice. Run @datedNotice(start=2026-03-01,end=2026-03-31) to find March notices. Date arguments take ISO year-month-day values. To vary the date order and month, save DATE[{{order:read}}:{{period:when}}] as dated and enter @dated(read=US,when=2026-03).

Use complete exact expressions with SAVED and metadata-only definitions with SCOPE. You can nest definitions. Review the resolved query before running it. Search history retains the expansion used for that run.

Move a Desktop investigation’s searches

In the sidebar, choose Export search profile and save the JSON file. On the destination computer, choose Import search profile. The import merges saved searches and applies the profile’s date order, search language, capitalisation and whole-word settings.

The file includes macro definitions, refinement chains, attachment scopes and saved concept searches. A conflicting name stops the import before any searches change. Export search history separately for the audit record of earlier runs. The receiving library supplies the documents and index.

In browser and Office panels, open Saved for the import and export controls. Panels can exchange plain saved expressions, macros, and matching settings with Desktop. Profiles that require library metadata, refinement chains, concept search, or a Desktop search language must be opened in Desktop.

Precedence and interpretation

From tightest to loosest: OR, NEAR, ADJ, NOT with a distance, sentence, paragraph, AND, XOR, then document exclusion. Write operator words in capitals. Quote a standalone “S” or “P” to search for the letter. A distance after an operator needs another term after the number.

Whole-word, case-insensitive matching is the default. Desktop and panels offer matching options. They can search malformed text literally and show a warning. The website demo asks you to correct syntax first.

Unicode matching

Canonical matching (NFC) finds both ways of writing café, with a single accented letter or a separate combining accent. Compatibility matching (NFKC) also finds office in office, and 12 in 12. Original keeps the extracted Unicode representation. Case and whole-word settings apply separately.

Choose a default under query help, or wrap one expression in UNICODE[compatibility](office OR invoice). Add accents to remove combining marks, including marks meaningful in some scripts. Add typography to fold curly quotes, common dashes and nonbreaking spaces. For example, UNICODE[canonical,accents](Jose) finds José. Regular expressions inspect the original text. Highlights and excerpts preserve the spelling in the document.

Saved expressions inherit the active settings. Put a Unicode override inside a saved expression to keep that choice wherever you reuse it. Export a search profile to carry the default with your saved searches. In MCP, pass the same profile name in the unicode argument to search.

Fields and Desktop filters

FIELD[subject]("written notice" OR termination) searches the subject. FIELD[body](notice /s termination) scopes proximity to the body, and FIELD[attachment](receipt) searches each attachment separately. In the Outlook panel, only attachment names are available. Refresh Desktop mail indexes to add body boundaries to older records. Plain-text hosts expose the body. Keep proximity inside the field expression.

Start with any of from:, to:, cc:, subject:, author:, filename:, sent:, received: or modified:. Quote values containing spaces. Text values match case-insensitively. All leading filters must match. Date filters accept YYYY-MM-DD or an inclusive YYYY-MM-DD..YYYY-MM-DD UTC range.

from:alice sent:2026-11-01..2026-11-30 "written notice"

Metadata filters are available in Desktop, its CLI search, and MCP search.

Full product guide

Check why a document matched