3.1 Creating Search Queries Using Search Builder
Creating a Complex Search Query
Overview
The Search Builder allows for advanced filtering of leads in the Leads view. This guide outlines the steps to create and apply complex search queries effectively.
Creating a Complex Search Query
Consider an example query to find contract opportunities that meet the following criteria:
- Lead Origin: FL (Florida) or TX (Texas).
- Lead Type: "Bid" or "RFP".
- Due Date: Between 03/01/2025 and 03/31/2025.
Step 1: Open Search Builder
-
Click the Search Builder button in the Leads view to open the search builder menu.
.gif?width=606&height=290&name=search%20bbuilder%20(1).gif)
Figure 1: Accessing Search Builder menu
Tip: A checkbox labeled Include Hidden Leads is available in the Search Builder menu. Selecting this option will display leads that were previously hidden using the Hide Lead button in the Leads view.
Step 2: Define the First Condition (Location Filter)
-
Change the condition logic to OR ( i.e. State = FL OR State = TX).
-
Click Add Expression.
-
Set Field from the dropdown: State.
-
Set Operator from the dropdown: Is Equal to.
-
Enter Value: FL.
-
Click Add Expression again and set the State to TX.

Figure 2: Setting the first condition
Step 3: Define the Second Condition (Lead Type Filter - Using Grouping)
-
Click Add Group to create a nested condition.
-
Change the logic within the group to OR ( i.e. Lead Type = Bid OR Lead Type = RFP).
-
Inside the group, click Add Expression.
-
Set Field from dropdown: Lead Type.
-
Set Operator from dropdown: Is equal to.
-
Enter Value: Bid.
-
Click Add Expression within the group and set the value to RFP.

Figure 3: Setting the second condition
Step 4: Define the Third Condition (Lead Type Filter - Using Grouping)
-
Click Add Group to create nested condition. The logic within this group remains AND because the condition specifies that the Due Date should be between 3/1/2025 and 3/31/2025, i.e. both the start and end date must be satisfied.
-
Click Add Expression.
-
Set Field from dropdown Due Date.
-
For filtering a range, use Is after or equal to for the start date and Is before or equal to for the end date.
-
Enter Value: 3/1/2025 (Start Date) and 3/31/2025 (End Date).

Figure 4: Setting the third condition
Note: Additional operators such as Is after, Is before, Is before or equal to etc. become available for date fields.
Step 5: Execute or Save the Query
- Click Save Query to store it for future use.
- A prompt will appear asking to enter a name for this query.
- Type the desired name in the text box and click OK to save.
- Click Submit to apply the search and view filtered results.
.gif?width=555&height=555&name=Untitled%20design%20(11).gif)
Figure 5: Saving query and submitting
Final Query Structure
(State = FL OR State = TX) AND (Lead Type = Bid OR Lead Type = RFP) AND (Due Date BETWEEN 3/1/2025 AND 3/31/2025)
The filtered leads fulfilling the query criteria are displayed after clicking the Submit button.
Operators
Operators define how search criteria filters data, allowing users to apply conditions to text, numbers, and dates for precise results.
|
Operator |
Description |
Query |
Example |
|
Contains |
Finds values that include the specified text |
Field: Agency Name, Operator: Contains, Value: School |
"School" matches "Public School District" |
|
Does not Contain |
Excludes results with the specified text |
Field: Agency Name, Operator: Does not Contain, Value: Bank |
"Bank" excludes "State Bank" |
|
Is equal to |
Matches exact values |
Field: State, Operator: Is equal to, Value: FL |
"FL” only shows leads from Florida. |
|
Is not equal to |
Excludes exact matches |
Field: State, Operator: Is not equal to, Value: FL |
"FL" excludes leads from Florida |
|
Starts With |
Finds values that begin with the specified text |
Field: Agency Name, Operator: Starts With, Value: Town |
"Town" matches "Town of Provincetown" |
|
Ends With |
Finds values that end with the specified text |
Field: Agency Name, Operator: Ends With, Value: Florida |
“Florida" matches "Orange County, Florida" |
|
Is null |
Finds records with null values |
Field: Agency Name, Operator: Is null |
Matches leads with null agency name |
|
Is not null |
Finds records where the field has a value (not null) |
Field: Agency Name, Operator: Is not null |
Excludes leads with null agency names |
|
Is empty |
Finds records where the field has no value |
Field: Agency Name, Operator: Is empty |
Matches leads with blank agency names |
|
Is not empty |
Finds records where the field has a value |
Field: Agency Name, Operator: Is not empty |
Excludes leads with missing agency names |
|
Is after or equal to |
Finds records on or after the specified date |
Field: Due Date Operator: Is after or equal to Value: 03/19/2025 |
Matches Leads with a due date on or after March 19, 2025 |
|
Is after |
Finds records after the specified date |
Field: Due Date Operator: Is after Value: 03/19/2025 |
Matches leads due after March 19, 2025 |
|
Is before |
Finds records before the specified date |
Field: Due Date Operator: Is before Value: 03/19/2025 |
Matches leads due before March 19, 2025 |
|
Is before or equal to |
Finds records on or before the specified date |
Field: Due Date Operator: Is before or equal to Value: 03/19/2025 |
Matches leads due on or before March 19, 2025 |
FAQs
Can saved queries be edited later?
Yes, saved queries can be modified and re-saved. Refer to Loading and editing a saved query article.
What if the search does not return expected results?
Check filter conditions and ensure correct operators are used.
Contact Us
For further assistance, Contact Us.