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
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 )
participants (2)
-
BZ -
Chris McDonough