Re: Fastest Index/Algorithm to find similar sentences
От | Sergey Konoplev |
---|---|
Тема | Re: Fastest Index/Algorithm to find similar sentences |
Дата | |
Msg-id | CAL_0b1uQc0Dm5VipD7ULAQD3HUPYsZ2z=aeFPdciDQwV1yDj3Q@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Fastest Index/Algorithm to find similar sentences ("Janek Sendrowski" <janek12@web.de>) |
Ответы |
Re: Fastest Index/Algorithm to find similar sentences
|
Список | pgsql-general |
On Sat, Jul 27, 2013 at 10:04 AM, Janek Sendrowski <janek12@web.de> wrote: > If I'm searching for a sentence like "The tiger is the largest cat species" for example. > I can only find the sentences, which include the words "tiger, largest, cat, species", but I also like to have the sentenceswith only three or even two of these words. You can use & (AND), | (OR), and ! (NOT) operators in tsquery, so you can achieve what you want just like this: [local]:5432 grayhemp@grayhemp=# select to_tsquery('tiger | largest | cat | species') @@ to_tsvector('The tiger is the largest cat'); ?column? ---------- t Or may be I understand something wrong again? > > Janek > > > -- > Sent via pgsql-general mailing list (pgsql-general@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-general -- Kind regards, Sergey Konoplev PostgreSQL Consultant and DBA Profile: http://www.linkedin.com/in/grayhemp Phone: USA +1 (415) 867-9984, Russia +7 (901) 903-0499, +7 (988) 888-1979 Skype: gray-hemp Jabber: gray.ru@gmail.com
В списке pgsql-general по дате отправления: