Overview
When working with MQTT brokers that handle hundreds or thousands of topics, finding specific topics quickly is essential. MQTT Explorer’s search and filter feature provides instant, real-time filtering of the topic tree to help you locate exactly what you need.Search Bar
The search bar is always accessible in the top navigation: Location: Top center of the application interface Key Features- Real-time filtering as you type
- Case-insensitive matching
- Matches any part of the topic path
- Clear button to reset filter
- Works on mobile and desktop
The search bar is only available when you’re connected to an MQTT broker.
How to Search
Auto-Focus Feature
For fastest access, the search bar auto-focuses when you start typing: Triggers Auto-Focus When:- You type any character (a-z, 0-9, etc.)
- You press Backspace or Delete
- No input field currently has focus
- You’re not typing in a text editor or form
- Typing in the Publish tab editor
- Using keyboard shortcuts (Ctrl/Cmd + key)
- An input field is already focused
Filter Behavior
Match Algorithm
The search filter uses intelligent matching: Partial Matching- Searches anywhere in the topic path
- Example:
tempmatches:home/living_room/tempsensors/temperature/readingtemp_sensor/bedroom
TEMP,temp, andTempall match the same topics- No need to remember exact capitalization
- Matches across topic hierarchy levels
- Example:
home/tempmatcheshome/bedroom/temp/current
Preserved Hierarchy
Filtered results maintain topic structure: Parent Topics Included- Matching topics show their full parent hierarchy
- Example: Searching
sensorshowshome/bedroom/sensoralong withhomeandbedroomnodes
- Expand/collapse functionality still works
- Topic relationships remain visible
- Easy to understand context of matching topics
Example: Filtering 'temp'
Example: Filtering 'temp'
Before filter:After filter:
Mobile Search
On mobile devices, the search experience is optimized: Mobile Behavior- Tapping search bar automatically switches to Topics tab
- Larger tap target for easier access
- Font size prevents iOS zoom-on-focus
- Touch-optimized keyboard appears
- Search bar adjusts width for smaller screens
- Clear button always accessible
- Results scroll smoothly
On mobile, the search bar may appear smaller but expands when focused for comfortable typing.
Keyboard Shortcuts
Navigate filtered results efficiently:| Key | Action |
|---|---|
| Start Typing | Auto-focus search bar |
| Escape | Clear search and blur input |
| Backspace | Delete characters (auto-focuses if not in field) |
| ↓ / ↑ | Navigate through filtered topics |
| Enter | Select highlighted topic |
Performance with Large Topic Sets
The search filter is optimized for performance: Efficient Filtering- Operates on topic paths (not message payloads)
- Incremental filtering as you type
- No lag even with 10,000+ topics
- Lightweight string matching algorithm
- Only renders visible filtered nodes
- Collapsed nodes don’t render children
- Smooth scrolling with large result sets
Search Use Cases
Find Device Topics
Search for specific device IDs or names across your broker
Locate Sensor Types
Find all temperature, humidity, or motion sensors quickly
Debug Specific Paths
Isolate problematic topics during troubleshooting
Filter by Room/Zone
Show only topics for a specific room, floor, or building
Identify Wildcards
Search for topics matching a pattern before subscribing
Audit Topics
Review topics containing specific keywords for compliance
Filter Tips & Tricks
Search Strategies
Search by Device ID
Search by Device ID
If your topics include device IDs (e.g.,
device/abc123/status), search for the ID directly:Search by Metric Type
Search by Metric Type
Find all topics of a specific type:
Search by Location
Search by Location
Filter topics by location hierarchy:
Multi-Word Search
Multi-Word Search
While the filter matches the exact string, you can search for phrases:This finds topics containing that exact sequence.
Naming Conventions for Searchability
Design topic hierarchies with search in mind: Good Topic Structure- Include device IDs in topic paths
- Use consistent naming for similar devices
- Add descriptive suffixes (
/status,/cmd,/data) - Include location identifiers
Clear Filter
Return to full topic view: Methods to Clear- Click the X button in the search bar
- Delete all text manually
- Press Escape while search is focused
- All topics become visible again
- Tree expansion states are preserved
- Selected topic remains selected
Search vs Subscribe Wildcards
Understand the difference:Search Filter
- Client-side filtering of received topics
- Filters what you see in the tree
- Does not affect subscription or data received
- Instant, no network traffic
Subscribe Wildcards
- Server-side filtering of which messages to receive
- Controls what data the broker sends to you
- Uses MQTT wildcards (
+for single level,#for multi-level) - Configured in connection settings
Accessibility
Screen Reader Support- Search bar labeled as
role="search" - Input labeled with
aria-label="Search topics" - Result count announced (when implemented)
- Fully operable without mouse
- Clear visual focus indicators
- Standard keyboard shortcuts
Best Practices
Use Specific Terms
Search for unique identifiers rather than generic terms
Clear Between Searches
Clear filter between different searches to avoid confusion
Combine with Tree Navigation
Filter to narrow results, then use arrow keys to browse
Save Common Searches
Keep a list of common search terms for your specific setup
Related Features
- Topic Visualization - Understanding the topic tree structure
- Message Inspection - Examining filtered topics
- Connections - Configuring subscription wildcards