Skip to main content.
home | support | download

Back to List Archive

Re: from the too lazy to do it in indexing department (remove duplicates)

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Tue Feb 24 2004 - 17:04:56 GMT
On Tue, Feb 24, 2004 at 08:43:27AM -0800, Brad Miele wrote:
> my @search_sites = ('Foo','Bar');
> $query = qq[(($query) and sphotogs=(].join(' OR ',@search_sites).qq[))];
> 
> The problem with this is that in records that have both Foo and Bar as
> entries, i get duplicate results.

I guess I don't follow.  Swish-e returns lists of files (or records if 
you like that name better).  It won't return duplicates unless you have 
indexed the same thing twice (or in two different indexes).

> I can't seem to build the right boolean to remove the doplicates. If id
> try to do  "not (Foo and Bar)", i lose the record alltogether.

You might need to provide an example.


-- 
Bill Moseley
moseley@hank.org
Received on Tue Feb 24 09:04:57 2004