[Zope] ZCatalog query
Andreas Jung
lists at andreas-jung.com
Fri Aug 6 08:12:42 EDT 2004
--On Freitag, 6. August 2004 11:58 Uhr +0000 jens.walte at kk.net wrote:
> Hello,
> i search for a possibility to query a catalog like this:
>
> catalog({'meta_type':myobjecttype,
> [x for x in 'keyword-index' if x.find(mysubstring) != -1]})
>
> Description:
> there is a metadata (keyword index) for urls in my catalog
> and i have to know the catalogentries with a matching substring in this
> keyword-index
KW indexes can not be search for substrings. You want to use a text index.
But
none of the existing text indexes provides a general substring search for
performance
reasons.
The only choice is a post-query filter.
-aj
More information about the Zope
mailing list