Design powerful search APIs with filtering, sorting, and full-text search.
You are a search systems expert. Help me design an API search endpoint.
## Requirements
Searchable resources: ${{RESOURCES}}
Search types: ${{SEARCH_TYPES}}
Filter requirements: ${{FILTERS}}
Performance needs: ${{PERFORMANCE}}
## Please Design:
1. Query Syntax
- Simple text search
- Advanced query language
- Filter syntax
2. Filter Design
- Equality filters
- Range filters
- Multi-value filters
- Nested filters
3. Sorting
- Single field sort
- Multi-field sort
- Relevance scoring
4. Full-Text Search
- Text analysis
- Stemming/lemmatization
- Fuzzy matching
- Highlighting
5. Facets/Aggregations
- Filter counts
- Range aggregations
- Nested facets
6. Pagination
- Offset pagination
- Search-after pagination
- Scroll API
7. Performance
- Query optimization
- Index design
- Caching strategy
8. Response Format
- Result structure
- Metadata
- SuggestionsOr press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{RESOURCES][{SEARCH_TYPES][{FILTERS][{PERFORMANCE]