Search
The Search function lets diners find dishes by keyword with real-time autocomplete suggestions.Basic Search
Autocomplete
For search-as-you-type functionality, use the autocomplete query:Example Response
For search term “sal”:Search with Filters
Combine keyword search with dietary filters:UI Pattern

Implementation
Search Results Tab
After searching, results appear in a “My search” tab:
- The searched dish (may be a Partial Match)
- “Matched Dishes” section with other compatible dishes
Best Practices
Debounce search input
Debounce search input
Wait 150-200ms after the user stops typing before making API calls. This reduces unnecessary requests.
Minimum character length
Minimum character length
Require at least 2-3 characters before showing suggestions. Single letters produce too many results.
Highlight matching text
Highlight matching text
Use the
highlightedText field to show users why each suggestion matched their query.Show dish details in suggestions
Show dish details in suggestions
Include calories and category in suggestion items to help users identify the right dish.
Handle no results gracefully
Handle no results gracefully
Show a friendly message when no dishes match: “No dishes found for ‘xyz’. Try a different search.”