Fuzzy Search Considerations for Impromat

Context

Technology Stack

The investigated options consider the current stack:

Thus, options span from Postgres native features to Prisma capabilities to stay with the existing stack.

Considered Options

Prisma preview feature for searching through database fields via a search logic:

See Prisma documentation

Postgres pg_trgm

Postgres trigram extension for fuzzy search features:

Basic text search via LIKE

Decision

Still unclear, how important fuzziness of the search is.

  1. Switch to easiest contains option.
  2. Observe user experience without fuzzy search and verify it is still usable.
  3. Switch to pg_trgm in the mid-term if Prisma is not supporting a fuzzy search.