Re: [GENERAL] ts_headline and query with hyphen

2012-12-04 Thread daniel
As a follow up to my previous comment, this is a cutting example select ts_headline('game played on-line', to_tsquery('on-line & game'), 'MaxWords=3,MinWords=2,ShortWord=1'); ts_headline --- game played on that can't be right... daniel -- Sent via pgsql-general

Re: [GENERAL] ts_headline and query with hyphen

2012-12-04 Thread daniel
On 12/05/2012 04:49 AM, Tom Lane wrote: daniel writes: I have a question about ts_headline, when the query includes word like 'on-line' - only the 'line' part is highlighted, even though the whole phrase is indexed too, some details below. Part of the reason is that "on" is a stop word (at le

Re: [GENERAL] ts_headline and query with hyphen

2012-12-04 Thread Tom Lane
daniel writes: > I have a question about ts_headline, when the query includes word like > 'on-line' - only the 'line' part is highlighted, even though the whole > phrase is indexed too, some details below. Part of the reason is that "on" is a stop word (at least in the default english dictionar

[GENERAL] ts_headline and query with hyphen

2012-12-04 Thread daniel
Hi I have a question about ts_headline, when the query includes word like 'on-line' - only the 'line' part is highlighted, even though the whole phrase is indexed too, some details below. Postgresql 9.1.6 select token, dictionary, lexemes from ts_debug('play on-line') where alias <> 'blank';