Re: [Zope-dev] ZCatalog comments
On Fri, 27 Apr 2001, Chris Withers wrote: Wildcards? Hmmm... that's enticing, where and how will they be supported? Wildcards are supported (and have been for a while) in text index searches if you specify a globbing vocabulary at Catalog creation time. --RDM ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] ZCatalog comments
Michel Pelletier wrote: +There are some rules to consider when querying this method: + +- an empty query mapping (or a bogus REQUEST) returns all + items in the +catalog. Is it only me that finds this really irritating? Surely a blank query mapping should return nothing, not everything? (at the least it'd be nice if this was configurable ;-) +Depending on the type of index you are querying, you may be +able to provide more advanced search parameters that can +specify range searches or wildcards. These features are +documented in The Zope Book. Wildcards? Hmmm... that's enticing, where and how will they be supported? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZCatalog comments
Michel Pelletier wrote: +There are some rules to consider when querying this method: + +- an empty query mapping (or a bogus REQUEST) returns all + items in the +catalog. Is it only me that finds this really irritating? Surely a blank query mapping should return nothing, not everything? (at the least it'd be nice if this was configurable ;-) This is for hysterical reasons. Lots of code depends on: dtml-in Catalog ... /dtml-in .. Principia's/ZTable's original customers (newspapers) decided it was better to show *all* the classified ads instead of *none* of the classified ads if the search spec matched nothing. I agree with you, however. That said, I don't think it's that big of a deal, and it can be dealt with through documentation. +Depending on the type of index you are querying, you may be +able to provide more advanced search parameters that can +specify range searches or wildcards. These features are +documented in The Zope Book. Wildcards? Hmmm... that's enticing, where and how will they be supported? It's in there already for text indexes. ? and * do the right thing. cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZCatalog comments
Chris Withers writes: +- an empty query mapping (or a bogus REQUEST) returns all + items in the +catalog. Is it only me that finds this really irritating? Surely a blank query mapping should return nothing, not everything? (at the least it'd be nice if this was configurable ;-) No! Please not! It is very natural that an empty query returns everything when subqueries are combined with AND. Any time, you add a subquery, the result set is a subset of the former one. For this to work out without boundary exceptions (we all hate them, I hope!), the empty query must be the complete set. Of course, if subqueries are combined with OR, the empty query should return no hits +Depending on the type of index you are querying, you may be +able to provide more advanced search parameters that can +specify range searches or wildcards. These features are +documented in The Zope Book. Wildcards? Hmmm... that's enticing, where and how will they be supported? Did you look in the Zope Book? The section above says, your question would be answered there. Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )