[Zope] Indexing: ZopeSplitter and numbers
Andreas Jung
Andreas Jung" <andreas@zope.com
Tue, 13 Nov 2001 14:07:40 -0500
Zope 2.4.X allows to have multiple splitters. So you can write your own
splitter.
The only disadvantage is that there is currently no offical API (except
monkeypatching)
to add custom splitters (but there is a already a proposal in the fishbowl
to address
this problem).
Andreas
----- Original Message -----
From: "Casey Duncan" <c.duncan@nlada.org>
To: "Andreas Jung" <andreas@andreas-jung.com>;
<richard@bizarsoftware.com.au>; <zope@zope.org>
Sent: Tuesday, November 13, 2001 13:52
Subject: Re: [Zope] Indexing: ZopeSplitter and numbers
> On Tuesday 13 November 2001 07:05 am, Andreas Jung allegedly wrote:
> > The answer is - as always - in the sources ;-) The splitting algorithm
is
> > pretty dumb. Roughly spoken it splits the text in words but not into
> > numbers.
> > To test the splitter try this:
> >
> > from ZopeSplitter import ZopeSplitter
> > print list(ZopeSplitter('abc 123 t353 nmj'))
> >
> > gives ['abc', 't353', 'nmj']
> >
> >
> > Andreas
>
> Has there been any thought in changing this behavior? I smell a fish bowl
> prop...
>
> /---------------------------------------------------\
> Casey Duncan, Sr. Web Developer
> National Legal Aid and Defender Association
> c.duncan@nlada.org
> \---------------------------------------------------/
>