[Zope] Searching ZCatalog for phrases
Chris Muldrow
cmuldrow@fredericksburg.com
Tue, 13 Nov 2001 16:18:34 -0500
I'm trying to search my ZCatalog instance TextIndex for a phrase such as
"chris muldrow", but the quotes are causing an error:Error Type:
AttributeError
Error Value: Op instance has no attribute '__getitem__'
Here's the traceback:
<!--
Traceback (innermost last):
File F:\FREDER~1\lib\python\ZPublisher\Publish.py, line 223, in
publish_module
File F:\FREDER~1\lib\python\ZPublisher\Publish.py, line 187, in publish
File F:\FREDER~1\lib\python\Zope\__init__.py, line 226, in
zpublisher_exception_hook
(Object: LockableItem)
File F:\FREDER~1\lib\python\ZPublisher\Publish.py, line 171, in publish
File F:\FREDER~1\lib\python\ZPublisher\mapply.py, line 160, in mapply
(Object: testreport)
File F:\FREDER~1\lib\python\ZPublisher\Publish.py, line 112, in
call_object
(Object: testreport)
File F:\FREDER~1\lib\python\OFS\DTMLMethod.py, line 194, in __call__
(Object: testreport)
File F:\FREDER~1\lib\python\DocumentTemplate\DT_String.py, line 546, in
__call__
(Object: testreport)
File F:\FREDER~1\lib\python\DocumentTemplate\DT_In.py, line 509, in
renderwb
(Object: Catalog)
File F:\FREDER~1\lib\python\Products\ZCatalog\ZCatalog.py, line 597, in
searchResults
(Object: LockableItem)
File F:\FREDER~1\lib\python\Products\ZCatalog\Catalog.py, line 649, in
searchResults
File F:\FREDER~1\lib\python\Products\ZCatalog\Catalog.py, line 537, in
_indexedSearch
File F:\FREDER~1\lib\python\Products\PluginIndexes\TextIndex\TextIndex.py,
line 547, in _apply_index
(Object: PluggableIndex)
File F:\FREDER~1\lib\python\Products\PluginIndexes\TextIndex\TextIndex.py,
line 612, in query
(Object: PluggableIndex)
File F:\FREDER~1\lib\python\SearchIndex\GlobbingLexicon.py, line 273, in
query_hook
File F:\FREDER~1\lib\python\SearchIndex\GlobbingLexicon.py, line 274, in
query_hook
AttributeError: (see above)
-->
Anyone know what's happening? Thanks! - Chris