[Zope3-dev] Sprintathon: searching?

Jim Fulton jim@zope.com
Wed, 06 Nov 2002 11:14:34 -0500


Martijn Faassen wrote:
> Chris Withers wrote:
> 
>>kapil thangavelu wrote:
>>
>>>umm. i think thats what steve is saying. the object itself knows nothing 
>>>of the interface, the adapter handles the object. so neither the catalog 
>>>nor the the object are specifying whats to be indexed.
>>>
>>This fells overly compelx an uncessesary. I want to index something, I got 
>>to the indexer and configure which attributes I want indexed. Why would I 
>>want to care about adapters et al?
>>
> 
> We were talking about indexing the 'full text content' of an object. 
> What this means depends on the type of object. It is however frequently
> not the responsibility of the object itself to know about it; otherwise
> all objects that could be indexed suddenly have to grow a method returning
> their full text content. While this is a possible implementation strategy
> in Zope 3, it's inflexible, so we'd like to avoid mandate it.

I'll go farther than that. It's absolutely forbidden for any standard Zope 3
frameworks to require ordinary (as opposed to meta) content objects to implement
specific interfaces.  Content objects shall never be required to be modified
to work with Zope 3 frameworks. Consider this a Papal edict. :)

Jim
-- 
Jim Fulton           mailto:jim@zope.com       Python Powered!
CTO                  (888) 344-4332            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org