[Zope] Finding unique objects in a ZCatalog returned list

Mike Groves Mike.Groves@polymerlabs.com
Thu, 21 Jun 2001 09:53:46 +0100


Hello,

I'm doing quick search using several indexes in a ZCatalog as below

<dtml-in expr="Catalog(title=query) + 
               Catalog(category=query) + 
               Catalog(description=query) + 
               Catalog(product=query) + 
               Catalog(keywords=query)">

This works really well. However, if my query string is found in more than
one index I get the same object returned more than once. 

How do I sort the list of objects returned and more importantly remove
duplicate objects?

Thanks for any help.

Mike

Dr Mike Groves
Software Strategist
Polymer Laboratories Ltd, Unit 8, The Mynd Industrial Estate 
Church Stretton, Shropshire, SY6 6EA, U.K.
Tel:		+44 1694 724420
Fax:	+44 1694 724434
Website:http://www.polymerlabs.com



----
The Information in this communication is confidential and may be privileged
and should be treated by the recipient accordingly.  If you are not the
intended recipient please notify me immediately. You should not copy it, or
use it for any purpose nor disclose its contents to any other person.
Opinions, conclusions and other information expressed in this message are not 
given or endorsed by Polymer Laboratories Ltd. unless otherwise 
indicated by an authorised representative independent of this message.
Any quotations, offers for sale or negotiations on behalf of the company 
contained in this Email are Subject to Contract and require alternative confirmation.