[ZCM] [ZC] 309/ 3 Comment "When adding a TextIndex all the catalog gets empty ... why?"
Collector: Zope Bugs and Patches ...
zope-coders@zope.org
Mon, 25 Mar 2002 10:04:42 -0500
Issue #309 Update (Comment) "When adding a TextIndex all the catalog gets empty ... why?"
Status Rejected, Zope/bug medium
To followup, visit:
http://collector.zope.org/Zope/309
==============================================================
= Comment - Entry #3 by antonio on Mar 25, 2002 10:04 am
Well, maybe I was not so clear about this issue. Sorry.
I do not think the catalog should reindex all after adding a TextIndex but AT LEAST KEEP THE ALREADY INDEXED OBJECTS VALUES.
Example:
Suppose I have a TextIndex called 'description' and it is already indexed. I have 237 # values on this key, real values not 'None'-values.
Now I add another TextIndex called 'abstract'. I do not do anything more with this. just added.
Now I make use of 'description' in a catalog search and I get no returns. Nothing is indexed under 'description'. Strange becaues before I had 237 # values. I look into the Catalog and see that there still are 237 # values but now they are all 'None'-values !!!
That's why I get no results from a search.
What I presume the Catalog should work is as following:
When I add a new TextIndex then the indexing done before should not be lost.
This is an issue discovered during another bug report (see also http://collector.zope.org/Zope/297)
Thanks in advance
Antonio De Marinis
________________________________________
= Reject - Entry #2 by ajung on Mar 25, 2002 9:33 am
Status: Pending => Rejected
This is intentional behaviour. Adding a new index to a
catalog will not automatically reindex the objects already
in the catalog.
-aj
________________________________________
= Request - Entry #1 by antonio on Mar 22, 2002 8:36 am
I found a bug I 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
==============================================================