[Zope] ZCatalog: searching with OR

Chris Beaven chris@d-designz.co.nz
Wed, 12 Feb 2003 11:32:48 +1300


The problem I have is that the results should be weighted. If I'm using 
ZCTextIndexes the weighting of a search result works really well. If I 
simply concatenate the results, won't the weighting be stuffed?

Andreas Jung wrote:

>res = searchResults(query1...) + searchResults(query2...)
>
>--On Dienstag, 11. Februar 2003 12:45 +1300 Chris Beaven 
><chris@d-designz.co.nz> wrote:
>
>  
>
>>Is there any way to seach a catalog for either column1 = 'something'
>>    
>>
>OR
>  
>
>>column2 = 'something' ?
>>
>>searchResults(column1='something', column2='something')
>>Only returns results when 'something' is in both column1 AND column2
>>
>>I could combine 2 results but then they won't be weighted correctly...
>>
>>Have I got any other options?
>>
>>
>>_______________________________________________
>>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 )
>>    
>>
>
>
>
>
> 
>---------------------------------------------------------------------
>   -    Andreas Jung                     http://www.andreas-jung.com   -
>  -   EMail: andreas at andreas-jung.com                              -
>   -            "Life is too short to (re)write parsers"               -
> 
>---------------------------------------------------------------------
>
>  
>