Bas Scheffers wrote:
> Hi,
>
> Is there a way to use tsearch so that it returns documents that have less
> than all the required keywords? The idea is that if a document only has 3
> out of 4 terms, it is still returned, but with a lower ranking.
>
> So far I haven't found a way to do this in the documentation. Is there
> something like a "maybe" operator? (ie: 'foo&bar&~doh', meaning documents
> with foo and bar, and optionaly doh, but those with would be ranked
> higher)
(foo&bar)|(foo&bar&doh)
I think, it's what you want.
--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru