[Zope] Zcatalog's TextIndex Question

Michel Pelletier michel@digicool.com
Wed, 15 Mar 2000 11:13:31 -0800


Ping Lau wrote:
> 
> Can anyone explain why TextIndex only works with words but not numbers?  For
> example, I have a catalogaware ZClass with a property PONumber of type
> String.  I created a PONumber as TextIndex in the Catalog.  I created 3
> instances of the ZClass with PONumber Verbal, Tim Dunken, 289-4569.  When I
> search for Verbal, Tim, or Dunken, I get the result.  But searching for 289,
> 4569, or 289-4569 returns a blank page.

The Splitter removes numbers.
 
> How can I solve the problem?

You can create your own kind of splitter and replace Zope's (note that
Zope's splitter is written in C, and is found in
lib/python/SearchIndex/Splitter.c) you can write yours in C or Python.

-Michel