Re: a little fix for text search

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: obartunov(at)gmail(dot)com
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: a little fix for text search
Date: 2016-11-12 20:49:16
Message-ID: 4877.1478983756@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

Oleg Bartunov <obartunov(at)gmail(dot)com> writes:
> Hi there !
> I don't know when exactly it was improved, but following notice in
> https://www.postgresql.org/docs/current/static/textsearch-controls.html#TEXTSEARCH-HEADLINE
> is currently not needed.

> ts_headline uses the original document, not a tsvector summary, so it can
> be slow and should be used with care. A typical mistake is to call
> ts_headline for every matching document when only ten documents are to be
> shown. SQL subqueries can help; here is an example:

I don't see why that stopped being appropriate? The point is that it
takes a raw text input which has to be re-parsed; that's still true
AFAICS.

regards, tom lane

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Oleg Bartunov 2016-11-12 21:01:46 Re: a little fix for text search
Previous Message Oleg Bartunov 2016-11-12 20:25:20 a little fix for text search