From 3cb7879a75c40760157cda697ce796ded5bb13fb Mon Sep 17 00:00:00 2001 From: asepharyana Date: Thu, 20 Aug 2026 22:35:12 +0700 Subject: [PATCH] docs: add markdown table to postgres FTS doc for table CSS verification --- content/notes/postgres/full-text-search.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/notes/postgres/full-text-search.md b/content/notes/postgres/full-text-search.md index d361f0e..acd805d 100644 --- a/content/notes/postgres/full-text-search.md +++ b/content/notes/postgres/full-text-search.md @@ -49,6 +49,12 @@ WHERE search_vector @@ q ORDER BY rank DESC; ``` +| Config | Stemming | Use case | +| ------------ | -------- | -------------------------------- | +| `simple` | none | Identifiers, ports, exact codes | +| `english` | yes | Natural-language body text | +| `websearch` | yes | Google-like queries (`"a" OR b`) | + A headline snippet for the UI comes from `ts_headline`, which bolds the matched lexemes. ## Hybrid fusion