[ZCM] [ZC] 297/ 5 Comment "Catalog TextIndex splitter encoding"

Collector: Zope Bugs and Patches ... zope-coders@zope.org
Fri, 22 Mar 2002 08:28:23 -0500


Issue #297 Update (Comment) "Catalog TextIndex splitter encoding"
 Status Accepted, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/297

==============================================================
= Comment - Entry #5 by antonio on Mar 22, 2002 8:28 am

Well, I thougth I solved the problem ... but I discovered another bug and I will also put this as a new issue on Collector.
The bug I found is still about TextIndex.

When adding a TexIndex the already cataloged objects get empty values e.g. (None, None, ...). So every time I add a new TextIndex I have to go to the tab 'Find Objects' and find and catalog all objects again. Then the None-values get the real values again .... and everybody is happy ;-)

/Antonio
________________________________________
= Comment - Entry #4 by antonio on Mar 21, 2002 4:31 am

I solved the problem of the migrated-catalog (from 2.4.3) by deleting it and create a new Catalog object (2.5.0). Then I was able to use TextIndex again, without getting any error about missing encoding parameter.

So the problems seems to be caused from the migrated catalog object. 
________________________________________
= Assign - Entry #3 by ajung on Mar 20, 2002 11:56 am

 Status: Pending => Accepted

 Supporters added: ajung


________________________________________
= Comment - Entry #2 by ajung on Mar 20, 2002 11:52 am

try to use pdb to investigate what the 'splitter'
object is in TextIndex.py (around line 312) before
'for word in list(splitter(.....))'.


________________________________________
= Request - Entry #1 by antonio on Mar 16, 2002 12:55 pm

I've migrated from 2.4.3 to 2.5.0 and my all my indexing where lost (empty). I had to reindex all.
The most strange thing is that I cannot use TextIndex. When I create a TextIndex (e.g. a string property 'Spanish') and try to index I get the following:
Error Type: TypeError
Error Value: Splitter() got an unexpected keyword argument 'encoding'

Traceback (innermost last):
  File /prj/glossary2/lib/python/ZPublisher/Publish.py, line 150, in publish_module
  File /prj/glossary2/lib/python/ZPublisher/Publish.py, line 114, in publish
  File /prj/glossary2/lib/python/Zope/__init__.py, line 158, in zpublisher_exception_hook
    (Object: )
  File /prj/glossary2/lib/python/ZPublisher/Publish.py, line 98, in publish
  File /prj/glossary2/lib/python/ZPublisher/mapply.py, line 88, in mapply
    (Object: manage_reindexIndex)
  File /prj/glossary2/lib/python/ZPublisher/Publish.py, line 39, in call_object
    (Object: manage_reindexIndex)
  File /prj/glossary2/lib/python/Products/ZCatalog/ZCatalog.py, line 455, in manage_reindexIndex
    (Object: GlossaryCatalog)
  File /prj/glossary2/lib/python/Products/ZCatalog/ZCatalog.py, line 441, in reindexIndex
    (Object: GlossaryCatalog)
  File /prj/glossary2/lib/python/Products/ZCatalog/ZCatalog.py, line 480, in catalog_object
    (Object: GlossaryCatalog)
  File /prj/glossary2/lib/python/Products/ZCatalog/Catalog.py, line 367, in catalogObject
  File /prj/glossary2/lib/python/Products/PluginIndexes/TextIndex/TextIndex.py, line 312, in index_object
    (Object: Spanish)
TypeError: (see above)



==============================================================