[Zope-dev] KeyError on UnIndex.keyForDocument
Chris McDonough
chrism@zope.com
Sat, 29 Sep 2001 16:29:49 -0400
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"