a little fix for text search

From: Oleg Bartunov <obartunov(at)gmail(dot)com>
To: pgsql-docs(at)postgresql(dot)org
Subject: a little fix for text search
Date: 2016-11-12 20:25:20
Message-ID: CAF4Au4w6rrH_j1bvVhzpOsRiHCog7sGJ3LSX0tY8ZdwhHT88LQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

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:

Regards,
Oleg

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2016-11-12 20:49:16 Re: a little fix for text search
Previous Message Tom Lane 2016-11-11 15:22:53 Re: FuncCallContext's call_cntr & max_calls are uint64