Re: text search: restricting the number of parsed words in headline generation - Mailing list pgsql-hackers

From Tom Lane
Subject Re: text search: restricting the number of parsed words in headline generation
Date
Msg-id 1659.1314125958@sss.pgh.pa.us
Whole thread Raw
In response to text search: restricting the number of parsed words in headline generation  (Sushant Sinha <sushant354@gmail.com>)
Responses Re: text search: restricting the number of parsed words in headline generation
Re: text search: restricting the number of parsed words in headline generation
List pgsql-hackers
Sushant Sinha <sushant354@gmail.com> writes:
> Given a document and a query, the goal of headline generation is to
> produce text excerpts in which the query appears.

... right ...

> Here is a simple patch that limits the number of words during the
> tokenization phase and puts an upper-bound on the headline generation.

Doesn't this force the headline to be taken from the first N words of
the document, independent of where the match was?  That seems rather
unworkable, or at least unhelpful.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Why doesn't psql use the information schema to get ACL description ?
Next
From: Tom Lane
Date:
Subject: Re: skip WAL on COPY patch