[Zope] ZCatalog searching on null field
BZ
bz@bwanazulia.com
7 May 2001 23:00:06 -0000
Hey Chris,
You are a life saver (like many times before). It works like a charm.
Thanks,
BZ
On Mon, 7 May 2001 16:44:26 -0400, "Chris McDonough" <chrism@digicool.com> wrote :
> Hi BZ,
>
> Assuming field_name is a field index, try:
>
> <dtml-in "searchResults(field_name=[''])" size="5" start=query_start>
> ...
> </dtml-in>
>
> For the ugly reasons why this is necessary, see the docstring of the
> _apply_index method of the UnIndex class within
> lib/python/SearchIndex/UnIndex.py .
>
>
> ----- Original Message -----
> From: "BZ" <bz@bwanazulia.com>
> To: <zope@zope.org>
> Sent: Monday, May 07, 2001 6:37 PM
> Subject: [Zope] ZCatalog searching on null field
>
>
> > I want to search through a ZCatalog and only return things that have an
> empty field.
> >
> > >From everything I have read, this should work
> >
> > <dtml-in "searchResults(field_name='')" size="5" start=query_start>
> > ....
> > </dtml-in>
> >
> > but it does not...
> >
> > Anyone?
> >
> > BZ
> >
> > _______________________________________________
> > Zope maillist - Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > ** No cross posts or HTML encoding! **
> > (Related lists -
> > http://lists.zope.org/mailman/listinfo/zope-announce
> > http://lists.zope.org/mailman/listinfo/zope-dev )
> >
>
>
>
>