pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Artur Zakirov <zaartur@gmail.com>
To: Mark Phillips <mark.phillips@mophilly.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: FTS and tri-grams
Date: Wed, 6 Jan 2021 09:02:16 +0100
Message-ID: <CAKNkYnwnNcO3YvVi6puwa-of75o7pz0AAzCBZvq3V3dm_MLtVg@mail.gmail.com> (raw)
In-Reply-To: <C31F8FA1-C435-4930-AA69-E933FB290E1A@mophilly.com>
References: <C31F8FA1-C435-4930-AA69-E933FB290E1A@mophilly.com>

On Tue, Jan 5, 2021 at 10:26 PM Mark Phillips
<mark.phillips@mophilly.com> wrote:
> We now wonder if tri-gram alone can achieve a fast full text search result. If so, then we could the tsvector column be dropped?
>
> 1. Is FTS required for tri-gram to work?
> 2. Are these independent of each other?

FTS and tri-gram are independent features. You can implement them
independently, but it might depend on your use case.

> 3. Is tri-gram alone sufficient for a “full text search” feature?

It isn't sufficient if you want exact and/or phrase search.

-- 
Artur





view thread (3+ messages)

Message-ID: <CAKNkYnwnNcO3YvVi6puwa-of75o7pz0AAzCBZvq3V3dm_MLtVg@mail.gmail.com>
Permalink:  ../CAKNkYnwnNcO3YvVi6puwa-of75o7pz0AAzCBZvq3V3dm_MLtVg@mail.gmail.com/
Also on:    postgresql.org/message-id/CAKNkYnwnNcO3YvVi6puwa-of75o7pz0AAzCBZvq3V3dm_MLtVg@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: zaartur@gmail.com, mark.phillips@mophilly.com
  Subject: Re: FTS and tri-grams
  In-Reply-To: <CAKNkYnwnNcO3YvVi6puwa-of75o7pz0AAzCBZvq3V3dm_MLtVg@mail.gmail.com>
  References: <C31F8FA1-C435-4930-AA69-E933FB290E1A@mophilly.com> <CAKNkYnwnNcO3YvVi6puwa-of75o7pz0AAzCBZvq3V3dm_MLtVg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox