I need some help with indexes. I'm confused about what I can index in which Index. Which index does not remove numbers? Which of them do I use to index a telephone number (containing characters). What about email addresses? Special characters? *oink* Help...
Erik Enge wrote:
I'm confused about what I can index in which Index. Which index does not remove numbers?
FieldIndex, KeyIndex
Which of them do I use to index a telephone number
How would you like to search that index?
(containing characters). What about email addresses? Special characters?
Likewise... You probably want a FieldIndex but it might not be searchable in the way you want... cheers, Chris
[observe the speed of Chris replying... *astounded* :)] On Mon, 9 Apr 2001, Chris Withers wrote:
Erik Enge wrote:
I'm confused about what I can index in which Index. Which index does not remove numbers?
FieldIndex, KeyIndex
Wow, KeyIndex? Is this a new one? Or did you mean KeywordIndex?
Which of them do I use to index a telephone number
How would you like to search that index?
I'd like to find this telephone number (it is a string...): +44 1234 123456.
Likewise...
As above, passing the string to searchResults; "erik@thingamy.net" f ex.
You probably want a FieldIndex but it might not be searchable in the way you want...
Which one would?
Erik Enge wrote:
Wow, KeyIndex? Is this a new one? Or did you mean KeywordIndex?
Bleugh... KeywordIndex :-)
Which of them do I use to index a telephone number
How would you like to search that index?
I'd like to find this telephone number (it is a string...): +44 1234 123456.
But no partial matching? Use a FieldIndex... If you want partial matching you're fu... not in a very good position ;-)
Likewise...
As above, passing the string to searchResults; "erik@thingamy.net" f ex.
FieldIndex...
You probably want a FieldIndex but it might not be searchable in the way you want...
Which one would?
There is a proposal for drop-in indexes on dev.zope.org... *grinz* Chris
I'd like to find this telephone number (it is a string...): +44 1234 123456.
But no partial matching? Use a FieldIndex... If you want partial matching you're fu... not in a very good position ;-)
Theres a cool hack to Splitter.c by Jason Spisak that doesnt remove numbers and punctuation from the Catalog. I make no promises since I haven't tried it. That should enable you to make it a text field and then do globbing... -- Andy McKay
participants (3)
-
Chris Withers -
Erik Enge -
Zopista