[Zope-Coders] Proposal for minor ZCatalog improvement
Shane Hathaway
shane@zope.com
Mon, 11 Nov 2002 12:02:36 -0500
Casey Duncan wrote:
> >--On Montag, 11. November 2002 09:56 -0500 Shane Hathaway
> >>This is a good thing to point out, but what about the possibility of
> >>allowing ZCTextIndexes to index multiple attributes? Currently we have
> >>"SearchableText()" methods all over that return "self.description +
> ' ' +
> >>self.title + ' ' + self.body". We could instead let the ZCTextIndex
> >>perform that work, making it more configurable.
> >
> >But that is an index related thing and is not directly ZCatalog related
>
>
> I agree, ZCatalog would not care. But I do think that would be a nice
> enhancement for ZCTextIndex.
Yes. I did not mean that ZCatalog needs any changes, I only meant to
provide evidence that getIndexedAttribute() won't work. That may not
have been clear.
> >>This would make getIndexedAttribute() impossible to implement correctly.
> >>Maybe getIndexedAttributeNames()?
>
>
> Maybe getIndexSourceName? I'm not sure if returning a list buys us
> anything,
> but if it does then getIndexSourceNames
The list would allow the UI to format multiple attributes in any way it
wants, assisting in the separation of presentation from logic. "Source"
doesn't have a defined meaning for ZCatalog.
Shane