Overview
AutoLog’s Global Search feature provides fast, cross-module searching to help you locate vehicles, assets, employees, registrations, and other resources quickly. The search system is optimized for speed and relevance.Accessing Global Search
Global Search is available from:- Search bar in the main navigation header
- Keyboard shortcut:
Ctrl+KorCmd+K(Mac) - Quick access: Click the search icon anywhere in the application
How Search Works
When you type a query, AutoLog searches across multiple data types:Searchable Entities
Search looks through:
- Vehicles: By license plate, make, model, or VIN
- Assets: By code, name, model, or serial number
- Employees: By name, email, or employee ID
- Registrations: By registration ID or vehicle plate
- Clients: By client name or site name
- Warehouses: By name or location
Search Algorithm
The search system:- Analyzes your query: Detects patterns (e.g., plate format, asset code structure)
- Searches relevant fields: Prioritizes exact matches
- Ranks results: Most relevant items appear first
- Limits results: Returns top 10 matches by default (configurable)
Performing a Search
Enter Query
Type your search term:
- Partial matches work (“HAA” finds “HAA-1234”)
- Case-insensitive
- Accent-insensitive (“José” matches “Jose”)
View Results
Results appear instantly as you type:
- Grouped by entity type
- Icons indicate resource type
- Key information displayed
Search Syntax
Basic Search
Simply type what you’re looking for:Exact Phrase Search
Use quotes for exact matches:Entity-Specific Search
Prefix your query to search specific entity types:Entity prefixes are optional. The system automatically detects context in most cases.
Search Results
Result Cards
Each result displays: Vehicle Results- License plate (bold)
- Make and model
- Current status
- Location
- Asset code
- Name and type
- Current status
- Destination (warehouse, employee, client)
- Full name
- Email address
- Job position
- Department/location
- Registration ID
- Vehicle used
- Employee name
- Date and status
Result Actions
Hover over a result to see available actions:- View Details: Open full information page
- Quick Preview: See summary without navigating
- Copy Link: Copy URL to clipboard
- Related Items: View connected resources
Preview Pane
For supported entities, click the preview icon to see details without leaving your current page.Preview Contents
Vehicle Preview- Photo (if available)
- Complete specifications
- Current assignment
- Recent activity
- Quick actions (Reserve, Check Out)
- QR code
- Full specifications
- Current location
- Movement history
- Quick actions (Move, Edit)
- Contact information
- Active vehicle assignments
- Reservation schedule
- Quick actions (Message, View Profile)
Previews load data dynamically from
/api/preview?kind={type}&id={id} (src/services/search.api.js:15)Advanced Features
Recent Searches
AutoLog remembers your recent searches:- Displayed when you open search with no query
- Click to re-run the search
- Clear history from search settings
Search Filters
Refine results using filters: Status Filter- Active only
- Include inactive
- Specific statuses
- Created/modified within timeframe
- Useful for registrations and movements
- Limit to specific city/warehouse
- Filter by assignment type
Keyboard Navigation
Search Keyboard Shortcuts
Search Keyboard Shortcuts
Ctrl+K/Cmd+K: Open searchEsc: Close search↓/↑: Navigate resultsEnter: Open selected resultCtrl+Enter: Open in new tabTab: Cycle through result groups
Search Performance
Optimization Features
- Debounced Input: Waits 300ms after you stop typing before searching
- Request Cancellation: Abandons slow queries when you type more
- Result Caching: Remembers recent searches for instant re-display
- Indexed Fields: Database indexes on commonly searched fields
Result Limits
Default limits per entity type:- Vehicles: 10 results
- Assets: 10 results
- Employees: 10 results
- Others: 5 results
Search in Specific Modules
Beyond global search, each module has its own search functionality:Vehicle List Search
- Searches only vehicles
- Includes more fields (location, status)
- Remembers filters
Asset List Search
- Full inventory search
- Warehouse-specific filtering
- Advanced type/status filters
Employee Directory Search
- Department filtering
- Role-based search
- Supervisor hierarchy search
Module-specific searches are more powerful for deep exploration within a single entity type.
API Integration
The search system uses a dedicated API endpoint:Endpoint
q(required): Search query stringlimit(optional): Max results per type (default: 10)
Search API implementation:
src/services/search.api.jsPermissions and Visibility
What You Can Search
Search respects your permissions:- You only see results you have permission to view
- Hidden entities (inactive, restricted) may be excluded
- Some fields may be redacted based on role
Sensitive Data
Certain information is protected:- Personal employee data (for non-HR users)
- Financial information
- Restricted client details
Troubleshooting
No Results Found
Problem: Search returns empty even though you know the item exists Solutions:- Check spelling and try variations
- Use partial terms (“HAA” instead of full plate)
- Verify you have permission to view the entity
- Check if item is inactive (try including inactive filter)
- Try searching in the specific module instead of global search
Search is Slow
Problem: Results take a long time to appear Solutions:- Check network connection
- Clear browser cache
- Try more specific search terms (reduces result set)
- Contact administrator if slowness persists (may need index optimization)
Wrong Results Appearing
Problem: Results don’t match your query Solutions:- Use exact phrase search with quotes
- Add entity-type prefix
- Check for typos in your query
- Use filters to narrow by status/type
Best Practices
Effective Searching
Search Tips for Better Results
Search Tips for Better Results
- Be specific: “HAA-1234” beats “HAA”
- Use unique identifiers: Asset codes, plates, IDs are fastest
- Try variations: If name search fails, try email or ID
- Use filters: Narrow by status or location
- Check spelling: Typos significantly affect results
- Start broad, then narrow: Begin with general term, add details if needed
When to Use Global vs Module Search
Use Global Search when:- You don’t know where the item is
- You want cross-module results
- You need quick lookup by ID/code
- You know the entity type
- You need advanced filtering
- You want to browse all items of a type
Related Features
- Dashboard: Quick access to recent items
- Reports: Advanced querying and analytics
- Notifications: Alerts about search-related events
Future Enhancements
Planned search improvements:- Natural language queries (“vehicles used by John”)
- Saved searches and alerts
- Full-text content search (documents, notes)
- AI-powered suggestions