Re: tsearch2: plainto_tsquery() with OR?
От | Oleg Bartunov |
---|---|
Тема | Re: tsearch2: plainto_tsquery() with OR? |
Дата | |
Msg-id | Pine.LNX.4.64.0708090928140.18739@sn.sai.msu.ru обсуждение исходный текст |
Ответ на | Re: tsearch2: plainto_tsquery() with OR? (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: tsearch2: plainto_tsquery() with OR?
|
Список | pgsql-general |
On Thu, 9 Aug 2007, Tom Lane wrote: > Oleg Bartunov <oleg@sai.msu.su> writes: >> On Wed, 8 Aug 2007, cluster wrote: >>> Does anyone know where I can request an OR-version of plainto_tsquery()? > >> plainto_tsquery expects plain text, use to_tsquery for boolean operators. > > Are either of these definitions really right? If I type "foo bar baz" > into Google, for instance, it seems to produce some sort of weighted > result, neither a strict AND nor a strict OR. Google didn't get where > they are by misjudging what the simplest search behavior should be like. we provide strict basic query language via to_tsquery(), which could be a foundation for different ql. We need consensus here and we leave it for future. Someone could write google like ql, but I didn't see any description what exactly google does. Currently, people write their own search wrappers which implement google-like ql. Regards, Oleg _____________________________________________________________ Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru), Sternberg Astronomical Institute, Moscow University, Russia Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/ phone: +007(495)939-16-83, +007(495)939-23-83
В списке pgsql-general по дате отправления: