Hia, While trying to reindex an entire catalog an error is raised, which looks like this: Traceback (innermost last): File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: api) File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: update_instances) File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: update_instances) File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Products/WarpFramework/catalog.py, line 438, in update_instances (Object: api) File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Products/WarpFramework/catalog.py, line 195, in __call__ (Object: Traversable) File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Products/ZCatalog/ZCatalog.py, line 535, in searchResults (Object: Traversable) File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Products/ZCatalog/Catalog.py, line 666, in searchResults File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Products/ZCatalog/Catalog.py, line 614, in _indexedSearch File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/SearchIndex/UnIndex.py, line 453, in keyForDocument KeyError: (see above) Any clues? Thanks a whole bunch, Morten
I had something like that. It turned out that I was doing a catalog query, sorting on an index that didn't exist on some of the objects. I made sure the index existed on all my objects. But still I'd be inclined to consider this a bug. Florent Guillaume Nuxeo Morten W. Petersen <morten@thingamy.net> wrote:
Hia,
While trying to reindex an entire catalog an error is raised, which looks like this:
Traceback (innermost last): File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: api) File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: update_instances) File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: update_instances) File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Products/WarpFramework/catalog.py, line 438, in update_instances (Object: api) File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Products/WarpFramework/catalog.py, line 195, in __call__ (Object: Traversable) File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Products/ZCatalog/ZCatalog.py, line 535, in searchResults (Object: Traversable) File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Products/ZCatalog/Catalog.py, line 666, in searchResults File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Products/ZCatalog/Catalog.py, line 614, in _indexedSearch File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/SearchIndex/UnIndex.py, line 453, in keyForDocument KeyError: (see above)
Any clues?
Thanks a whole bunch,
Morten
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
-- Florent Guillaume, Nuxeo SARL (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com
Yeah, I could see this error being raised if you had just added an index to use as the sort index and it didn't have all objects indexed within it yet... And yes, if this is what it is, it's a bug. But it's structural and not operational... we need to think a bit about what it means to add an unpopulated index to an existing catalog. Currently you just need to know that you must reindex the catalog. - C Florent Guillaume wrote:
I had something like that. It turned out that I was doing a catalog query, sorting on an index that didn't exist on some of the objects. I made sure the index existed on all my objects. But still I'd be inclined to consider this a bug.
Florent Guillaume Nuxeo
Morten W. Petersen <morten@thingamy.net> wrote:
Hia,
While trying to reindex an entire catalog an error is raised, which looks like this:
Traceback (innermost last): File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: api) File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: update_instances) File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: update_instances) File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Products/WarpFramework/catalog.py, line 438, in update_instances (Object: api) File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Products/WarpFramework/catalog.py, line 195, in __call__ (Object: Traversable) File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Products/ZCatalog/ZCatalog.py, line 535, in searchResults (Object: Traversable) File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Products/ZCatalog/Catalog.py, line 666, in searchResults File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Products/ZCatalog/Catalog.py, line 614, in _indexedSearch File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/SearchIndex/UnIndex.py, line 453, in keyForDocument KeyError: (see above)
Any clues?
Thanks a whole bunch,
Morten
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
-- Chris McDonough Zope Corporation http://www.zope.org http://www.zope.com "Killing hundreds of birds with thousands of stones"
From what I remember, it happened even after a complete catalog cleaning and repopulation. We were using Zope 2.3.3 and CMF at the time. That was on a production server so there was a bit of time pressure on us :) thus the hazy recollection.
Florent Guillaume Nuxeo Chris McDonough <chrism@zope.com> wrote:
Yeah, I could see this error being raised if you had just added an index to use as the sort index and it didn't have all objects indexed within it yet...
And yes, if this is what it is, it's a bug. But it's structural and not operational... we need to think a bit about what it means to add an unpopulated index to an existing catalog. Currently you just need to know that you must reindex the catalog.
- C
Florent Guillaume wrote:
I had something like that. It turned out that I was doing a catalog query, sorting on an index that didn't exist on some of the objects. I made sure the index existed on all my objects. But still I'd be inclined to consider this a bug.
Florent Guillaume Nuxeo -- Florent Guillaume, Nuxeo SARL (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com
On Saturday 29 September 2001 04:29 pm, Chris McDonough allegedly wrote:
Yeah, I could see this error being raised if you had just added an index to use as the sort index and it didn't have all objects indexed within it yet...
And yes, if this is what it is, it's a bug. But it's structural and not operational... we need to think a bit about what it means to add an unpopulated index to an existing catalog. Currently you just need to know that you must reindex the catalog.
- C
What would the reaction be to changing this behavior. I have written some code that automatically populates the index when it is added. I personally think that reindexing every index just to populate one is grossly inefficient. I wrote this single index update because of the DocumentLibrary product which performs real-time document format conversions when documents are indexed. With a catalog of more than 100 MSWord documents, It is glacial to update the entire catalog. Although I have not put this code into a DocumentLibrary release yet, I would prefer to see it put directly into the catalog. Whaddya think? /---------------------------------------------------\ Casey Duncan, Sr. Web Developer National Legal Aid and Defender Association c.duncan@nlada.org \---------------------------------------------------/
participants (4)
-
Casey Duncan -
Chris McDonough -
Florent Guillaume -
Morten W. Petersen