[Zope] ZCatalog Question - Seach on numbers, not letters

Andreas Jung Andreas Jung" <andreas@zope.com
Thu, 16 May 2002 15:05:37 -0400


The splitters in all Zope versions will throw away everything
that smells like a number.

This problem will be solved in Zope 2.6 where the vocabulary objects
have a switch to turn on indexing for numbers. The same functionality
is also available in TextIndexNG.

-aj
----- Original Message -----
From: <complaw@hal-pc.org>
To: <zope@zope.org>
Sent: Thursday, May 16, 2002 14:59
Subject: [Zope] ZCatalog Question - Seach on numbers, not letters


> A set of DTML Documents have a field containing telephone numbers.  The
users
> want to be able to search, for example, for all telephone numbers starting
with
> a given area code (like 713).  The field has been indexed using a
TextIndex, a
> FieldIndex, and a KeywordIndex.  In each case, the index was set up and
the
> index process was run.  For the TextIndex case, no objects were
(re)indexed and
> the subsequent search results were always empty.  For the case the
KeywordIndex
> and the FieldIndex, only exact matches were returned.
>
> Is there a way to index something like a telephone number (i.e., no
letters) so
> that they return valid results on -partial- input?
>
> Thanks in advance,
>
> Ron
>
>
>
> _______________________________________________
> 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 )
>