Re: scoring differences between bitmasks

From: "Todd A(dot) Cook" <tcook(at)blackducksoftware(dot)com>
To: Ben <bench(at)silentmedia(dot)com>
Cc: Postgresql-General mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: scoring differences between bitmasks
Date: 2005-10-02 19:14:12
Message-ID: 43403184.5000107@blackducksoftware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ben wrote:
> Just the number of bits, not which ones. Basically, the hamming distance.

I see. Could you pre-compute the bit counts for the vectors in the table?
You could count the bits in the search vector as Martijn suggested, and then
do a lookup based on the count.

-- todd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Kretschmer 2005-10-02 19:16:19 Re: Portable PostgreSQL
Previous Message Ben 2005-10-02 18:49:03 Re: scoring differences between bitmasks