Overview
The search functionality allows you to find content across multiple resource types simultaneously. The search command performs intelligent text matching across relevant fields and returns ranked results.Use Cases
- Find services, events, or resources by keyword
- Discover photos by location or tags
- Research topics across multiple content types
- Quick content discovery and exploration
Benefits
- Cross-platform search: Query all content types at once
- Field-aware matching: Searches in relevant fields (title, description, location, tags, etc.)
- Ranked results: Results sorted by relevance
- Progress tracking: Visual feedback during search operation
- Flexible filtering: Search specific content types or all at once
Basic Search
Search across all content types:Search Specific Content Types
Limit your search to a specific content type:- Services
- Events
- Photos
- Resources
- Service title
- Description
- Category
Controlling Result Count
Limit the number of results returned:The default limit is 10 results. Increase this for broader searches or decrease for quick lookups.
Command Reference
Syntax
Required Options
| Option | Description | Example |
|---|---|---|
--query | Search term or phrase | --query "education" |
Optional Flags
| Option | Type | Default | Description |
|---|---|---|---|
--type | choice | all | Content type: all, services, events, photos, resources |
--limit | integer | 10 | Maximum number of results to return |
Search Implementation Details
The search function operates by:- Determining scope: Based on the
--typeparameter, it selects which content types to search - Fetching data: Makes concurrent API requests to relevant endpoints
- Field matching: For each item, checks if the query appears in searchable fields
- Ranking results: Sorts by relevance (frequency of matches in title/description)
- Limiting output: Returns only the top N results based on
--limit
Searchable Fields by Type
Relevance Algorithm
Results are ranked using a simple relevance score:title and description fields rank higher.
Example Output
When you run a search, results are displayed in formatted panels:Performance Tips
Best Practices
Effective Search Queries
-
Be specific: Use precise keywords that match your target content
-
Use content-type filters: Narrow your search to relevant types
-
Adjust result limits: Find the right balance between completeness and clarity
Search Strategies
Finding services by category
Finding services by category
Search for category keywords like “health”, “education”, “legal”, etc.:
Discovering location-based content
Discovering location-based content
Search for location names in events and photos:
Research by topic
Research by topic
Search all content types for comprehensive topic coverage:
Error Handling
The search command handles errors gracefully:Next Steps
- Learn about batch operations for bulk downloads
- Explore export functionality to save search results
- Try the interactive shell for repeated searches