[Zope] ZCatalog: Problems w/ certain words

Niclas Kuehne niclas@eho2000.de
Mon, 10 Dec 2001 22:23:57 +0100


I use ZCatalog for indexing and searching documents within Zope.=20
Queries for certain words like: ftp, en, es, ge always return a=20
Zope error message. Is there some language issue (en, es, ge, fr=20
are all abbreviations for languages)? If I query for fr:someword=20
for example, it return the results without any error message. Is=20
this a feature or a bug? What about the term ftp? I use the=20
following dtml-code for the queries (only the important lines):

<form name=3D"suche" action=3D"/Navigation/Suche/suchen"=20
method=3D"get">
<input type=3D"hidden" name=3Dtextindex_operator value=3D'and'>
<input maxlength=3D50 name=3D'PrincipiaSearchSource' value=3D"">
<dtml-in Catalog size=3Dbatchsize start=3Dquery_start>
<a href=3D"&dtml-absolute_url;"><dtml-var title></a>
<dtml-var bobobase_modification_time fmt=3D"day">
</dtml-in>

There is more to it but this is just the main lines of the=20
source file.

This is the error message I get:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Fehler Typ: KeyError
Fehler Inhalt: 0
Vorschl=E4ge zum Beheben des Fehlers:
Diese Seite verweist evtl. auf fehlende Komponenten.0.
Die URL ist fehlerhaft.
Die =FCbergebenen Parameter sind fehlerhaft.
Eine verwendetet Komponente wies Fehler auf.
Falls dieser Fehler weiterhin aufaucht, kontaktieren Sie bitte=20
den Administrator dieser Seite. Vielen Dank!
Traceback (innermost last):
  File=20
/usr/local/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py,=20
line 222, in publish_module
  File=20
/usr/local/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py,=20
line 187, in publish
  File=20
/usr/local/Zope-2.3.0-linux2-x86/lib/python/Zope/__init__.py,=20
line 221, in zpublisher_exception_hook
    (Object: Traversable)
  File=20
/usr/local/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py,=20
line 171, in publish
  File=20
/usr/local/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/mapply.py,=20
line 160, in mapply
    (Object: suchen)
  File=20
/usr/local/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py,=20
line 112, in call_object
    (Object: suchen)
  File=20
/usr/local/Zope-2.3.0-linux2-x86/lib/python/OFS/DTMLMethod.py,=20
line 189, in __call__
    (Object: suchen)
  File=20
/usr/local/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_String.py=
,=20
line 538, in __call__
    (Object: suchen)
  File=20
/usr/local/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_In.py,=20
line 606, in renderwb
    (Object: Catalog)
  File=20
/usr/local/Zope-2.3.0-linux2-x86/lib/python/Products/ZCatalog/Lazy.py,=20
line 221, in __getitem__
  File=20
/usr/local/Zope-2.3.0-linux2-x86/lib/python/Products/ZCatalog/Catalog.py,=
=20
line 185, in __getitem__
KeyError: (see above)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D


I use Zope Version 2.3.0 (binary release, python 1.5.2,=20
linux2-x86).

Any ideas on what this error message means and how to avoid it?

Thank you,

Niclas Kuehne

Please reply to niclas@eho2000.de