Re: [Zope] Index types, property types
Thank you for the suggestion. However, I've got just that already sitting here on my desk -- as I said, I've read the documentation available. I'm looking for something *more* than that explanation, which doesn't really seem to make clear the pros and cons of using the various types. Leigh Ann ---- "Andreas Jung" <andreas@andreas-jung.com> wrote:
Take a look at the corresponding section of the Zope book:
http://www.zope.org/Members/michel/ZB/SearchingZCatalog.dtml
It gives you a very good introduction into using the ZCatalog.
Andreas ----- Original Message ----- From: "Leigh Ann Hildebrand" <leighann@onebox.com> To: <zope@zope.org> Sent: Friday, May 25, 2001 2:40 PM Subject: [Zope] Index types, property types
I've read the documentation about various index types (Text, Field, Keyword) as well as the information about property types. However, I'm having problems understanding how to decide which to use for different situations. For instance, I originally made document keywords a property "keywords" of the type "tokens", but it seems like tokens are case sensitive, and I'd be better off using just "string" -- or maybe it's that having the keyword property be indexed as KeywordIndex is a bad choice?
Could someone compare and contrast these things a bit more for me?
Leigh Ann
-- Leigh Ann Hildebrand leighann@onebox.com - email (650) 223-2199 x2231 - voicemail/fax
__________________________________________________ FREE voicemail, email, and fax...all in one place. Sign Up Now! http://www.onebox.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
__________________________________________________ FREE voicemail, email, and fax...all in one place. Sign Up Now! http://www.onebox.com
From the Zope book:
TextIndex Searches text. Use this kind of index when you want a full-text search. FieldIndex Searches objects for specific values. Use this kind of index when you want to search date objects, numbers, or specific strings. KeywordIndex Searches collections of specific values. This index is like a FieldIndex, but it allows you to search collections rather than single values. I don't see your problems at this time. Every index has its special purpose. If you need more help provide some informations about the things you are trying to index. Andreas ----- Original Message ----- From: "Leigh Ann Hildebrand" <leighann@onebox.com> To: "Andreas Jung" <andreas@andreas-jung.com> Cc: <zope@zope.org> Sent: Friday, May 25, 2001 3:12 PM Subject: Re: [Zope] Index types, property types
Thank you for the suggestion. However, I've got just that already sitting here on my desk -- as I said, I've read the documentation available. I'm looking for something *more* than that explanation, which doesn't really seem to make clear the pros and cons of using the various types.
Hi Leigh, choose the types that are appropriate for the type of information you want to store. You may use more then one variant to collect the information into a ZCatalog. <trickbox> you can as example using a method to concenate all your fields into one text block and use "fulltext index" for the method and "keyword index" the same time for each of the fields. This way you can make a navigation or selection out of the keywords and use fulltext search too. </trickbox> Regards Tino Wildenhain --On Freitag, 25. Mai 2001 12:12 -0700 Leigh Ann Hildebrand <leighann@onebox.com> wrote:
Thank you for the suggestion. However, I've got just that already sitting here on my desk -- as I said, I've read the documentation available. I'm looking for something *more* than that explanation, which doesn't really seem to make clear the pros and cons of using the various types.
Leigh Ann
---- "Andreas Jung" <andreas@andreas-jung.com> wrote:
Take a look at the corresponding section of the Zope book:
http://www.zope.org/Members/michel/ZB/SearchingZCatalog.dtml
It gives you a very good introduction into using the ZCatalog.
Andreas ----- Original Message ----- From: "Leigh Ann Hildebrand" <leighann@onebox.com> To: <zope@zope.org> Sent: Friday, May 25, 2001 2:40 PM Subject: [Zope] Index types, property types
I've read the documentation about various index types (Text, Field, Keyword) as well as the information about property types. However, I'm having problems understanding how to decide which to use for different situations. For instance, I originally made document keywords a property "keywords" of the type "tokens", but it seems like tokens are case sensitive, and I'd be better off using just "string" -- or maybe it's that having the keyword property be indexed as KeywordIndex is a bad choice?
Could someone compare and contrast these things a bit more for me?
Leigh Ann
-- Leigh Ann Hildebrand leighann@onebox.com - email (650) 223-2199 x2231 - voicemail/fax
__________________________________________________ FREE voicemail, email, and fax...all in one place. Sign Up Now! http://www.onebox.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
__________________________________________________ FREE voicemail, email, and fax...all in one place. Sign Up Now! http://www.onebox.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Andreas Jung -
Leigh Ann Hildebrand -
Tino Wildenhain