Understanding search clause structure
Every search query is built from one or more search clauses. A search clause has three parts:- Keyword - The field you want to search (e.g.,
city,department,status) - Operator - How you want to compare the value (e.g.,
=,!=,>,<) - Value - What you’re searching for (e.g.,
Boston,Active,100)
cityis the keyword (the field we’re searching)=is the operator (we want exact matches)Bostonis the value (what we’re looking for)
Working with spaces and quotation marks
The basic rule
Keywords and values can only contain spaces if they’re surrounded by quotation marks.When you need quotes
If your value contains spaces, wrap it in quotes:When you don’t need quotes
Single-word values don’t need quotes:Quote usage for keywords
The same rule applies to keywords. Most field names are single words and don’t need quotes, but if you have a custom field with spaces in its name, you’ll need to use quotes:Operator spacing
Operators work with or without spaces around them, but adding spaces makes your searches easier to read. These two searches work identically:| Operator | Meaning |
|---|---|
= | equals (exact match) |
!= | not equals |
> | greater than |
< | less than |
>= | greater than or equal to |
<= | less than or equal to |
: | contains (partial match) |
Boolean searches with AND and OR
You can combine multiple search clauses using Boolean operators to create more powerful searches.AND is implied
When you write multiple clauses without an operator between them, Broadstripes treats them as AND:Using OR
UseOR (in uppercase) to find records matching any of your criteria:
Grouping with parentheses
Use parentheses to group clauses and control the order of evaluation. This is especially important when mixing AND and OR:More Boolean examples
Find leaders at multiple locations:Searching by date
Broadstripes provides flexible date searching, including support for natural language dates.Standard date format
You can search using standard date formats:Natural language dates
Broadstripes understands natural language date expressions, which makes searches easier to write and maintain. Wrap these expressions in quotes:Common natural language patterns
These expressions are supported:"yesterday""last week""last month""2 weeks ago""3 months ago""one year ago""90 days ago"
Date range examples
Find people who signed cards in the last month:Searching for multiple values
You can search for multiple values at once using parentheses. This is useful when you want to find records that match any of several options.Basic multi-value syntax
Put your values in parentheses, separated by commas:More examples
Learn more
Multi-value searches have additional features and options. For complete details, see the Creating multi-value searches guide.Searching related records (sub-queries)
One of the most powerful features of Broadstripes search is the ability to search based on properties of related records. These are called sub-query searches or relational searches.The concept
Instead of searching for a specific value, you can search for records that have a relationship to other records matching certain criteria.Basic sub-query syntax
Use square brackets[] to create a sub-query:
More examples
Find people who work for organizations in the healthcare industry:Combining with other searches
You can combine sub-queries with regular searches:Next steps
Now that you understand the basics of search syntax, you can start building more complex queries by:- Combining Boolean operators for complex logic
- Using date searches to find time-sensitive records
- Exploring the full range of available keywords for your project