[Zope3-dev] Sprintathon: searching?

Chris Withers chrisw@nipltd.com
Tue, 05 Nov 2002 10:57:50 +0000


Steve Alexander wrote:
> 
>> An open problem that's not really solved completely in the Zope2 case
>> (I believe) is how to extract the indexable text from an object once
>> it is decided that it should be indexed. 
> 
> In Zope3, I guess there will be an interface, ISearchableText, that 
> defines a getSearchableText() method, and adapters from most content 
> types to that interface. (Change spelling according to taste.)

I'm not sure this specific case is best solved by an interface. Afterall, what 
you want to index is often best specified in the indexer, not the object being 
indexed.

cheers,

Chris