[Zope-dev] Catalog Indexes.

2001-04-09 Thread Erik Enge

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...


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Catalog Indexes.

2001-04-09 Thread Chris Withers

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

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Catalog Indexes.

2001-04-09 Thread Erik Enge

[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; "[EMAIL PROTECTED]" f ex.
 
 You probably want a FieldIndex but it might not be searchable in the
 way you want...

Which one would?


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Catalog Indexes.

2001-04-09 Thread Zopista

  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



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Catalog Indexes.

2001-04-09 Thread Chris Withers

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; "[EMAIL PROTECTED]" 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

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )