People do not abandon an internal app because the database is SQLite. They abandon it because they cannot find the thing they entered last Tuesday.
Excel still wins that fight more often than it should. Ctrl+F works. A filter dropdown works. Sort by a column works. Your new app has a search box that matches an exact string in one field, returns forty pages of everything else, and then acts surprised when someone exports the whole table back to a spreadsheet.
I listed search as one of the five features every internal app needs on day one. This is the practical version of that advice: build the questions the business already asks, not a search engine.
## People Search With Questions
Watch someone use the old spreadsheet for ten minutes. They are not “searching.” They are answering a short list of questions:
- What is waiting on me?
- What did I submit this week?
- What is overdue, urgent, or stuck?
- Show me this customer, vendor, part, or plant
- What changed since yesterday?
If the app cannot answer those in a couple of clicks, a search box on the navbar will not save it. The first version of search should be those questions, turned into filters with good defaults.
## Saved Views Beat a Clever Box
I would rather ship five named views than one “smart” search bar.
My queue. Items assigned to me, or waiting on my role. Mine. Records I created that are still open. This week. Created or updated since Monday. Needs attention. Past due, rejected, or missing a required field. By plant / department. The slice the business already uses when they talk about the work.
Put those above the table. Remember the last one the user picked. Default the landing page to “my queue,” not “everything, newest first, page one of ninety.”
A free-text box is still useful. Use it for the identifiers people actually type: request number, PO, customer name, part number. Do not make them learn your schema to find a record.
## Index the Fields You Filter
Most internal apps do not need Elasticsearch. They need a where clause and two or three indexes.
If the screen filters by status, assignee, plant, and created date, those columns should be indexed. If people look up a request by its number, that column should be unique and fast. Prisma on SQLite or PostgreSQL will do this without a second system. I have written about when SQLite is enough; search is one of the places it stays enough, as long as you are not scanning every text column on every keystroke.
Partial match on a name is fine. Partial match across every note, comment, and JSON blob is how a forty-person app starts to feel slow. Search the fields on the list. Leave the long notes for the record page.
## Search Has to Respect Roles
A search result is a record. If the person should not see it on the list, they should not find it through the box either.
This is the same rule as page access versus record access. Filter the query by role, ownership, assignment, or plant before you rank or paginate. Hiding a row in the UI after the query already returned it is how internal apps leak vendor cost, salary, or a customer another division should not see.
Empty results should be honest. “No matches” is different from “nothing you are allowed to see.” You do not need to explain the security model. You do need to avoid a result set that implies the record does not exist when it does.
## Sort, Dates, and the Empty State
Default sort is a product decision. Pending work should not be buried under a year of completed records. I usually sort open items by the date someone is supposed to act, and completed items by the date they closed.
Date filters should match how people talk: today, this week, last 30 days, custom range. A pair of raw date pickers with no presets is how you get “I filtered it wrong and thought the data was gone.”
When a filter matches nothing, say what was applied and offer a way to clear it. “No results” on a blank screen sends people back to Excel. “Nothing pending approval this week. Clear filters.” keeps them in the app.
## What You Do Not Need Yet
- A dedicated search cluster
- Fuzzy matching on every column
- Natural-language search
- A filter builder with nested AND/OR groups
Those tools earn their place when you have enough text, enough volume, or enough ad hoc questions that a handful of views cannot cover. For the first release of an internal app, they are how you spend a month and still lose to Ctrl+F.
## Final Thought
Search is not a feature you bolt on after the forms look nice. It is how people get back to their work. Start with the five questions they already ask, make those views fast, and keep the query inside the same permission rules as the rest of the app.
If someone can find “what is waiting on me” faster in your app than in the spreadsheet, you have a real chance they will stop keeping a private copy.