I also noticed that the directions for indexing multiple columns don't seem to be quite right.
In section 12.2.2:
UPDATE pgweb SET textsearchable_index_col =I found that the last word of title is joined with the first word of body, which gives strange results. I ended up added a space which gave better results:
to_tsvector('english', coalesce(title,'') || coalesce(body,''));
to_tsvector('english', coalesce(title,'') || ' ' || coalesce(body,''));
On Fri, Apr 17, 2009 at 1:04 AM, Tom Lane <tgl@xxxxxxxxxxxxx> wrote:
Rick Schumeyer <rschumeyer@xxxxxxxxx> writes:Er ... why is that a problem? As long as the index stems the words in
> I want to be able to search a list of articles for title words as well as
> author names. I understand how to do the title words with the full text
> searching. But I'm not sure the best strategy for the names. The full text
> parser "parses" the names giving undesirable results.
> For example,
> select to_tsvector('claude Jones');
> to_tsvector
> --------------------
> 'jone':2 'claud':1
the same way that the query does, why should you care?
regards, tom lane