Re: Full text search strategy for names
От | Rick Schumeyer |
---|---|
Тема | Re: Full text search strategy for names |
Дата | |
Msg-id | 95b1cc100904170402j1ac9d355n7c473c026a12b53c@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Full text search strategy for names (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Full text search strategy for names
Re: Full text search strategy for names Re: Full text search strategy for names |
Список | pgsql-general |
You can get extra (undesirable) results, depending on the name. For example, if you are searching for the last name of "Ricks", you will also find all authors whose first name is "Rick".
I also noticed that the directions for indexing multiple columns don't seem to be quite right.
In section 12.2.2:
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@sss.pgh.pa.us> wrote:
Rick Schumeyer <rschumeyer@gmail.com> 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
В списке pgsql-general по дате отправления: