Don’t want to write boolean syntax by hand? Switch to Keyword Search and use the AI helper button in the search bar — see the AI Query Helper walkthrough on the main Search page.
How SamSearch combines your terms
If you type more than one term without an operator between them, SamSearch requires all of them by default — it’s the same as joining them withAND. SamSearch is also forgiving about malformed queries: if you leave a quote or parenthesis unbalanced, it closes automatically rather than throwing an error.
Exact phrases
Wrap a phrase in double quotes to match it exactly, word order included:"artificial intelligence"— matches that exact phrase"government contract"— matches that exact phrase
Boolean operators: AND / OR / NOT
cybersecurity AND AI— both terms must be presentconstruction OR building— either term can be presentsoftware NOT hardware— exclude hardware results(AI OR "artificial intelligence") AND security— grouped conditions
and, AND, and And all work the same way.
Grouping with parentheses
Use parentheses to control how terms combine, including puttingNOT inside a group. This is the exact example shown in the Keyword Search box’s own placeholder text:
Wildcards and fuzzy matching
cyber*— matches cybersecurity, cybernetics, and anything else starting with “cyber”*security*— matches any word containing “security”constru?t—?stands in for exactly one characterconstruct~— fuzzy match, catching close misspellings like “construct” or “construkt”governm~1— fuzzy match with an edit distance of 1
Not supported
A few things that look like they should work, don’t — SamSearch’s query sanitizer treats{ } [ ] : < > + - as literal characters, not operators, before your query ever reaches the search engine:
- Field-scoped search is not supported. Something like
title:cybersecuritywill not restrict your search to titles — it searches for the literal text. Use the Filters panel (NAICS, Agency, Set-Aside, and so on) to scope your search by field instead of query syntax. - Range syntax is not supported. Something like
value:[100000 TO 500000]ordue_date:[NOW TO +30DAYS]will not filter by value or date. Use the Contract Value and Due Date filters in the sidebar instead. - Lucene
+term/-termprefixes are not supported. UseAND/NOTinstead.
Because these characters are always treated literally, you also never need to escape them yourself. Typing
C++ searches for the literal text “C++” — no backslashes required.Worked examples
Back to Search
Return to the main Search guide for sources, filters, and saving searches.