Re: scoring differences between bitmasks - Mailing list pgsql-general

From Todd A. Cook
Subject Re: scoring differences between bitmasks
Date
Msg-id 43403184.5000107@blackducksoftware.com
Whole thread Raw
In response to scoring differences between bitmasks  (Ben <bench@silentmedia.com>)
List 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




pgsql-general by date:

Previous
From: Ben
Date:
Subject: Re: scoring differences between bitmasks
Next
From: Andreas Kretschmer
Date:
Subject: Re: Portable PostgreSQL