~/talk

You don't need Elasticsearch! Fuzzy Search with PostgreSQL and Spring Data

Talkat Spring I/O 2025 · 2025-05-22..05-23· [databases]
links:none on file
slides:none on file

Demonstrates that many fuzzy search needs can stay inside PostgreSQL using the Postgres trigram extension and its similarity operators (returns 0–1), integrated with Spring Data JPA via a custom Hibernate function; built a demo API, populated data, ran the three access patterns (JPQL, native SQL, Specification) and all tests are green, with a recommendation to prefer GIN index is ~3x faster (at cost of 2–3x larger index) and to avoid Specifications because they break prepared-statement planning.

AI-written summary · about

  1. 0:00Introduction
  2. 10:04Fuzzy search requirements
  3. 16:29LIKE operator limits
  4. 22:12Trigram similarity in PostgreSQL
  5. 29:09Trigram indexes setup
  6. 33:40Spring Data JPA fuzzy search
  7. 37:13Security and performance
  8. 40:08Alternatives to trigram
  9. 41:50Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.