Search Postgresql Archives

Re: tsearch2: plainto_tsquery() with OR?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Oleg Bartunov <oleg@xxxxxxxxxx> writes:
> On Thu, 9 Aug 2007, Tom Lane wrote:
>> 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.

Since we're about to push tsearch into core, I'm not very happy with a
"leave it to the future" approach.  We need to get the API right *now*.

I think that a function defined as "take these words and do an
appropriate weighted search with them" doesn't necessarily have to
specify what the weighting is.  But if the definition is "find the AND
of these words", you can't fudge that later on.

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your
       message can get through to the mailing list cleanly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux