Re: Fastest Index/Algorithm to find similar sentences
От | Sergey Konoplev |
---|---|
Тема | Re: Fastest Index/Algorithm to find similar sentences |
Дата | |
Msg-id | CAL_0b1stpg-iB28=m2hZM=h1JR9Ji8=-UdVE_NGFEj9RMC=VXQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Index for Levenshtein distance ("Janek Sendrowski" <janek12@web.de>) |
Ответы |
Re: Fastest Index/Algorithm to find similar sentences
|
Список | pgsql-general |
On Sun, Aug 11, 2013 at 6:20 AM, Janek Sendrowski <janek12@web.de> wrote: > the ranking functions are nice, but if I search for one more word, which is not included in the sentence I'm searchingfor, It doesn't find the sentence. I have already wrote you earlier about it. You can solve the problem by using & (AND), | (OR), and ! (NOT) operators in tsquery. select to_tsquery('tiger | largest | cat | species') @@ to_tsvector('The tiger is the largest cat'); ?column? ---------- t The query contains one word more than the sentence (the word is "species"), and it successfully finds it. -- Kind regards, Sergey Konoplev PostgreSQL Consultant and DBA http://www.linkedin.com/in/grayhemp +1 (415) 867-9984, +7 (901) 903-0499, +7 (988) 888-1979 gray.ru@gmail.com
В списке pgsql-general по дате отправления: