Re: [Zope3-Users] Search multiple fields with TextIndex

2009-02-19 Thread Christian Lück
Massimiliano della Rovere wrote: > On Tue, Feb 17, 2009 at 23:50, Christian Lück > wrote: >> Massimiliano della Rovere wrote: >>> Another question is: >>> is there a way to automatically create TextIndices for certain (all) fields >>> of an interface? >> No, I think there's not. The event subscrib

Re: [Zope3-Users] Search multiple fields with TextIndex

2009-02-17 Thread Christian Lück
Massimiliano della Rovere wrote: > Another question is: > is there a way to automatically create TextIndices for certain (all) fields > of an interface? No, I think there's not. The event subscriber to IEventoNuovoSiteMabon is the way to go. Instead of using a field manager :) I suggest you use th

Re: [Zope3-Users] Search multiple fields with TextIndex

2009-02-13 Thread Christian Lück
Massimiliano della Rovere wrote: > Suppose I have an object with the following interface: > IArtFile > author: TextLine... > subject: Textline... > location: TextLine... > > I setup 3 text indices and create 3 adapters implementing > ISearchableText to extract each field. > > I want to create a

Re: [Zope3-Users] Search multiple fields with TextIndex

2009-02-13 Thread Shailesh Kumar
please have a look at AttributeIndex mixin. http://apidoc.zope.org/++apidoc++/Book/indexcatalog/catalog/show.html Having 3 different Attribute Indices might be a better idea than 3 different Text Indices. With regards, - Shailesh On Fri, Feb 13, 2009 at 10:33 PM, Massimiliano della Rovere < ma

[Zope3-Users] Search multiple fields with TextIndex

2009-02-13 Thread Massimiliano della Rovere
Suppose I have an object with the following interface: IArtFile author: TextLine... subject: Textline... location: TextLine... I setup 3 text indices and create 3 adapters implementing ISearchableText to extract each field. I want to create a search viewlet or page with a section containing [se