[Zope] Zcatalog error : FieldIndex doesn't work..

Geir B Hansen geirh@funcom.com
Mon, 4 Oct 1999 16:08:40 +0200


I have a Zclass with a meta-type of newsitem, and a Zcatalog to index
them.
Searching with Textindex-fields works like a dream , but when i start
using Fieldindexes, the troubles begin :

When i input stuff into both my author-field(fieldindex) and another
field(textindex) in my searchform, everything performs nicely, but when
i leave all textindex-fields empty, and only select something in my
author-field i get the following return :

Zope has encountered an error while publishing this resource.

Error Type: AttributeError
Error Value: data_record_score__

with the following traceback :

Traceback (innermost last):
  File
/usr/local/funweb/src/python/Zope2/lib/python/ZPublisher/Publish.py,
line 214, in publish_module
  File
/usr/local/funweb/src/python/Zope2/lib/python/ZPublisher/Publish.py,
line 179, in publish
  File /usr/local/funweb/src/python/Zope2/lib/python/Zope/__init__.py,
line 201, in zpublisher_exception_hook
    (Object: ElementWithAttributes)
  File
/usr/local/funweb/src/python/Zope2/lib/python/ZPublisher/Publish.py,
line 165, in publish
  File
/usr/local/funweb/src/python/Zope2/lib/python/ZPublisher/mapply.py, line
160, in mapply
    (Object: newsreport)
  File
/usr/local/funweb/src/python/Zope2/lib/python/ZPublisher/Publish.py,
line 102, in call_object
    (Object: newsreport)
  File /usr/local/funweb/src/python/Zope2/lib/python/OFS/DTMLMethod.py,
line 145, in __call__
    (Object: newsreport)
  File
/usr/local/funweb/src/python/Zope2/lib/python/DocumentTemplate/DT_String
.py, line 502, in __call__
    (Object: newsreport)
  File
/usr/local/funweb/src/python/Zope2/lib/python/DocumentTemplate/DT_In.py,
line 592, in renderwb
    (Object: newscatalog)
  File
/usr/local/funweb/src/python/Zope2/lib/python/Products/ZCatalog/Lazy.py,
line 190, in __getitem__
  File
/usr/local/funweb/src/python/Zope2/lib/python/Products/ZCatalog/Catalog.
py, line 170, in __getitem__
AttributeError: (see above)


------------------------------------------------
          Geir B Hansen
      geirh@funcom.com
Web-designer / Graphic artist
          Funcom Oslo
------------------------------------------------