Re: [Zope] Objet : Re: [Zope] Searching in all field with ZCatalog
Francois-Regis CHALAOUX writes:
No, you asked the right question, scuse me for the error !! I would like only one entry in the form to search in all indexed fields. This is not easy.
A ZCatalog search usually combines searches to the different indexes with an "And". You want to combine them with an "Or". There is an example for this in the Advanced ZCatalog Tutorial (--> zope.org). There has recently been a discussion in this list (--> searchable archive). Apparently, there is no comprehensive solution. Dieter
Dieter Maurer wrote:
A ZCatalog search usually combines searches to the different indexes with an "And". You want to combine them with an "Or".
Don't you wish there was a decent query language for ZCatalog so this kindof rediculous complexiting to achieve a simple outcome wasn't necessary? cheers, Chris PS: The example in the Advanced ZCatalog How-To does away with most of the catalog's advantages (like lazy searches, small results set, etc)
Chris Withers writes:
Dieter Maurer wrote:
A ZCatalog search usually combines searches to the different indexes with an "And". You want to combine them with an "Or".
Don't you wish there was a decent query language for ZCatalog so this kindof rediculous complexiting to achieve a simple outcome wasn't necessary? I do -- but not enough to implement it ;-)
Dieter
Dieter Maurer wrote:
Chris Withers writes:
Don't you wish there was a decent query language for ZCatalog so this kindof rediculous complexiting to achieve a simple outcome wasn't necessary? I do -- but not enough to implement it ;-)
Same here :-( I wonder if there's a standard search language/interface that ZCatalog could implement? I wonder if anyone could do it and then open source it? DC? If not, I wonder whether something like Cosource.com couldn't be leveraged to cough up funds so someone like Dieter, who has a lot of experience with the Catalog, could dedicate the the time to do it and make everyone happy? Here's hoping... Chris
participants (3)
-
Chris Withers -
Chris Withers -
Dieter Maurer