Common Issues
general
Search Feature Not Working in My AI App
Your app has a search feature but it doesn't work correctly. It returns no results even when data exists, returns wrong results, is extremely slow, or crashes the page.
Common Causes
- Search queries the wrong field or table
- Case-sensitive matching when it should be case-insensitive
- The search function only works on client-side data, not the full database
- Missing database indexes making search queries extremely slow
- Special characters in search input causing query errors
How to Fix It
- Check the browser Network tab to see what search query is being sent to the API
- Verify the API returns the expected results by testing the endpoint directly
- If search is too slow, add a database index on the searchable columns
- Make sure the search is case-insensitive (use ILIKE in PostgreSQL or toLowerCase in the app)
- Sanitize search input to prevent special characters from breaking the query
Real developers can help you.
Describe what's wrong in plain English. No technical knowledge needed.
Get HelpFrequently Asked Questions
Search returns no results even though the data exists. Why?
The search is probably querying the wrong field, or using exact match instead of partial match. A developer can check the query and fix it.
Search works but is very slow. Can it be fixed?
Yes. Adding a database index on the search column usually fixes this immediately. A developer can also implement more efficient search patterns.