Overview
Reseñas Gastronómicas provides powerful search and filtering capabilities to help you quickly find specific reviews. This guide covers all available search methods and best practices.Search Methods
The application offers two primary ways to find reviews:- Text Search - Search across restaurants, dishes, and review content
- Restaurant Filters - Filter by specific restaurants with one click
Text Search
Access the Search Bar
The search input is prominently displayed at the top of the reviews section with a search icon.
Enter Search Terms
Type your search query directly into the search box. The search is real-time - results update as you type.
Search Behavior
The search function examines multiple fields:- Restaurant names
- Dish names
- Review text from both reviewers
Search is case-insensitive and uses partial matching, so searching for “pizza” will find “Pizza Margherita”.
Review Results
The reviews grid automatically updates to show only matching results. The search looks for your query anywhere in the searchable fields.The search automatically:
Real-Time Updates
- Shows the clear button when text is entered
- Hides reviews that don’t match
- Maintains filter selections
Restaurant Filters
Locate Filter Buttons
Restaurant filter buttons appear below the search bar. The application dynamically generates buttons for all unique restaurants in your reviews.
Select a Restaurant
Click any restaurant button to filter reviews to only that restaurant. The selected button is highlighted with a gradient background.
View Filtered Results
The reviews grid updates to show only reviews from the selected restaurant. All other reviews are hidden.Active filters are visually distinct with a purple-to-pink gradient.
Filter Styling
Combining Search and Filters
You can use text search and restaurant filters simultaneously for more precise results.Example Workflow
Filters and search work together multiplicatively - results must match BOTH the filter and search criteria.
Advanced Search Techniques
Searching by Reviewer
Since search includes review text, you can find reviews mentioning specific terms:Finding High-Rated Items
While there’s no rating filter in the UI, you can:- Search for superlatives: “increíble”, “excelente”, “perfecto”
- Look at the average rating displayed on each card
- Check the statistics panel for top-rated restaurants
Empty Search Results
If no reviews match your search:- The reviews grid appears empty
- Try broader search terms
- Check for typos
- Clear filters to expand results
Filter Management
The filter system is self-updating based on your reviews:Dynamic Filter Updates
- Adding a new restaurant: Filter button appears automatically
- Deleting all reviews from a restaurant: Filter button is removed
- Editing restaurant names: Filters update to reflect changes
Search Performance
The search implementation is client-side and optimized for real-time responsiveness:Performance Characteristics
Instant Results
Search executes on every keystroke with no delay
No Network Calls
All filtering happens locally in the browser
Scalable
Performs well with hundreds of reviews
Responsive
Works smoothly on mobile devices
Search Data Flow
Here’s how search queries flow through the application:- Input event triggered on search field
- Search module captures and stores query
- UI module requests filtered reviews
- DataStore applies search logic
- Results rendered to grid
Keyboard Shortcuts
While not explicitly implemented, standard browser behaviors work:- Tab - Navigate to search field
- Escape - Clear search field (browser default)
- Ctrl/Cmd + F - Browser find (searches visible text)
Best Practices
Use Specific Terms
Use Specific Terms
Search for dish names (“ceviche”) rather than generic terms (“comida”) for better results.
Start Broad, Then Narrow
Start Broad, Then Narrow
Begin with a restaurant filter, then use search to find specific dishes or reviews.
Try Variations
Try Variations
If a search fails, try:
- Singular vs plural (“taco” vs “tacos”)
- Different spellings
- Related terms
Clear Filters Between Searches
Clear Filters Between Searches
Click “Todos” to reset restaurant filters when starting a new search.
Troubleshooting
Search Not Working
Symptoms: Typing in search box doesn’t filter results Solutions:- Refresh the page to reinitialize JavaScript
- Check browser console for errors
- Verify Search module is initialized in app.js:24
- Clear browser cache
Filters Missing
Symptoms: No restaurant filter buttons appear Solutions:- Ensure you have added at least one review
- Check that reviews have restaurant names
- Verify Filters.update() is called after adding reviews
- Inspect the
#restaurantFilterselement in DevTools
Search Results Unexpected
Symptoms: Search shows irrelevant results Solutions:- Remember search includes review text, not just titles
- Check for the search term in reviewer comments
- Verify search is case-insensitive
- Clear any active restaurant filters
Next Steps
Add Reviews
Create more reviews to get the most from search and filters
Customize Interface
Personalize colors and styles for your review system