A sales coordinator pastes an order number into the application but gets no result, while a search for a word in the order notes works. The record may exist. The application may be applying a natural-language search method to an identifier that staff expect to match exactly.

Original conceptual illustration, not a product screenshot or client installation. Technical sources reviewed on 25 November 2026.

Define the search promise for each field

Separate a known-record lookup from discovery. Someone entering ORD-0042 usually wants that order. Someone entering “replacement pump” may want several records whose descriptions contain those words. One box can support both tasks, but its matching and result order need an explicit design.

PostgreSQL's full-text search introduction describes parsing text into tokens and normalising them into searchable lexemes. That is useful for document language. It does not establish the business meaning of an order code, and the effect of punctuation depends on the parser and configuration.

Keep identifier rules deliberate

Agree whether case, hyphens, spaces and leading zeros are significant. Do not remove them globally just to make a failed search work: two valid identifiers could collapse into one. Preserve the original display value and document any separate normalised search key.

For example, a supplier reference 0042 may be different from 42 even if the team considers upper- and lower-case letters equivalent elsewhere. The SKU leading-zero import guide explains why the source value must survive earlier data handling too. Search cannot recover an identifier already damaged during import.

If prefix matching is offered, label or explain it. PostgreSQL's pattern-matching reference documents wildcard behaviour for LIKE. A pasted percent or underscore should not silently broaden a literal lookup unless that is the intended interface. Ask the developer to handle literal characters and query parameters safely.

Make results useful without widening access

Consider showing an exact identifier match before descriptive matches, with enough permitted context to distinguish orders. Do not guess the user's intended record and open or modify it automatically. An ambiguous prefix needs a choice, not an invented match.

Apply the same record permissions to search results, counts and previews as to the underlying order. Finding a result must not reveal another customer's reference, private note or hidden record. Keep a clear distinction between no accessible match and a technical search failure.

Build a small acceptance pack

  1. List real identifier formats using approved, non-confidential examples. Include punctuation, leading zeros, mixed case and copied whitespace.
  2. For each query, specify the expected exact match, permitted alternatives and result order.
  3. Test descriptions, an unknown code, an ambiguous prefix and a user with narrower access.
  4. Check response time with representative data and pagination. Use the query-plan review guide if the matching rule works but becomes slow.

ITZ's custom software development service can help define these requirements. Describe the records staff cannot reliably find.

Discuss your business record search

Bring sample identifier formats, expected matching rules and a redacted failed-search example. Discuss exact lookup, descriptive discovery, permissions and acceptance cases. Discuss Your Business Record Search