[Zope] Re: ZCatalog: searching with OR

Chris Beaven chris@d-designz.co.nz
Wed, 12 Feb 2003 17:44:53 +1300


Thanks Maik, that's exactly what I wanted to do!

Score another one to the vigilent zope zenners ;)

Maik Jablonski wrote:

>Chris Beaven wrote:
>  
>
>>Because it's 2 different indexes I'm searching
>>    
>>
>
>Then I would set up a combined index, which should do the weighting... 
>Create a PythonScript (id=CatIndex) which concates the two indexes (the 
>properties) and returns the result. Then index the CatIndex in your 
>Catalog and query it with 'a or b'. ZCTextIndex will give you the 
>weighted result...
>
>-mj
>
>
>
>_______________________________________________
>Zope maillist  -  Zope@zope.org
>http://mail.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists - 
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>  
>