Re: [GENERAL] to_tsvector() with hyphens

2015-07-06 Thread Tom Lane
Brian DeRocher writes: > But why does to_tsquery() AND them? > rasmas_hackathon=> select * from to_tsquery( 'gn-foo | bandage' ); > to_tsquery > > 'gn-foo' & 'gn' & 'foo' | 'bandag' > (1 row) Because what you're looking for is gn-fo

[GENERAL] to_tsvector() with hyphens

2015-07-06 Thread Brian DeRocher
Hey everyone, I think it's great that the full text search parser breaks hyphenated words into multiple parts. I think this really could help, but something is not right. rasmas_hackathon=> select * from ts_debug( 'gn-foo' ); alias | description | token | dic